{"id":18337893,"url":"https://github.com/scalad/layim","last_synced_at":"2025-04-09T16:07:55.699Z","repository":{"id":109048364,"uuid":"74976730","full_name":"scalad/LayIM","owner":"scalad","description":"基于HTML5 WebSocket的一款IM即时通讯软件，使用Gradle集成了Scala、SpringBoot、Spring MVC、Mybatis、Redis等，前端使用了LayIm框架","archived":false,"fork":false,"pushed_at":"2017-08-26T01:02:03.000Z","size":19546,"stargazers_count":264,"open_issues_count":2,"forks_count":157,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-04-09T16:07:45.601Z","etag":null,"topics":["druid","layim","mybatis","scala","spring-boot","websocket"],"latest_commit_sha":null,"homepage":"https://scalad.github.io/FrontJS/layui.layim_v3.0.1_%E5%AE%9E%E6%97%B6%E9%80%9A%E8%AE%AF%E5%9C%A8%E7%BA%BF%E8%81%8A%E5%A4%A9%E7%B3%BB%E7%BB%9F/demo/index.html","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scalad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-28T13:43:01.000Z","updated_at":"2025-03-12T02:37:47.000Z","dependencies_parsed_at":"2023-04-04T05:14:24.885Z","dependency_job_id":null,"html_url":"https://github.com/scalad/LayIM","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalad%2FLayIM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalad%2FLayIM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalad%2FLayIM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalad%2FLayIM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scalad","download_url":"https://codeload.github.com/scalad/LayIM/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065286,"owners_count":21041871,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["druid","layim","mybatis","scala","spring-boot","websocket"],"created_at":"2024-11-05T20:12:42.323Z","updated_at":"2025-04-09T16:07:55.669Z","avatar_url":"https://github.com/scalad.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"### SpringBoot-WebSocket ###\r\n\r\n一个基于[WebSocket](http://websocket.org/index.html)和[LayIM](https://www.layui.com/)的即时通讯系统，后台使用了[Gradle](https://gradle.org/)集成了[Spring Boot](http://projects.spring.io/spring-boot/)、[Scala](http://www.scala-lang.org/)、[Mybatis](http://blog.mybatis.org/)、[DevTools SpringBoot热部署方案](https://github.com/scalad/Note/tree/master/SpringBoot_DevTools)以及[Redis](https://redis.io/)等\r\n\r\n### 需要 ###\r\n* Scala 2.1+\r\n* JDK 1.8+\r\n* Gradle 3.+\r\n* Mysql 5.0+\r\n* Redis \r\n\r\n### 技术 ###\r\n\r\n* [Gradle](https://gradle.org/install)\r\n* Scala\r\n* SpringBoot\r\n* SpringSecurity\r\n* Mybatis And PageHelper\r\n* Redis\r\n* Alibaba Druid\r\n* Java Mail\r\n\r\n### 界面 ###\r\n\r\n![](https://github.com/scalad/WebSocket/blob/master/doc/image/Gif.gif)\r\n\r\n### application.properties配置文件 ###\r\n\r\n你需要在这里配置你的Mysql数据库，Redis以及邮件服务器，如果不需要邮件相关服务，你可以在UserService.scala中注释掉相关的代码\r\n    \r\n\t# Application\r\n\tspring.application.name=LayIM\r\n\t\r\n\t# Mybayis\r\n\tmybatis.mapper-locations=classpath*:/mapper/*Mapper.xml\r\n\tmybatis.configuration.map-underscore-to-camel-case=true\r\n\tmybatis.configuration.use-generated-keys=true\r\n\tmybatis.configuration.default-fetch-size=100\r\n\tmybatis.configuration.default-statement-timeout=30\r\n\tspring.jpa.show-sql=true\r\n\t\r\n\t# Datasource\r\n\tspring.datasource.type=com.alibaba.druid.pool.DruidDataSource\r\n\tspring.datasource.url = jdbc:mysql://localhost:3306/websocket\r\n\tspring.datasource.username = root\r\n\tspring.datasource.password = root\r\n\tspring.datasource.driver-class-name= com.mysql.jdbc.Driver\r\n\t\r\n\t# Spring MVC\r\n\tspring.mvc.view.prefix=/WEB-INF/view/\r\n\tspring.mvc.view.suffix=.jsp\r\n\tspring.http.multipart.max-file-size=50MB\r\n\tspring.http.multipart.max-request-size=50MB\r\n\t\r\n\t# Server\r\n\tserver.port=80\r\n\tserver.session.timeout=1800\r\n\t\r\n\t# Email\r\n\tspring.mail.host=smtp.qq.com\r\n\tspring.mail.username=764341083@qq.com\r\n\tspring.mail.password=ugmgoaidcsaobbaf\r\n\tspring.mail.port=587\r\n\tspring.mail.properties.mail.smtp.auth=true  \r\n\tspring.mail.properties.mail.smtp.starttls.enable=true  \r\n\tspring.mail.properties.mail.smtp.starttls.required=true  \r\n\t\r\n\t# Redis Configration\r\n\t# Redis database index, default is 0\r\n\tspring.redis.database=0 \r\n\tspring.redis.host=120.27.114.229\r\n\tspring.redis.password=redis\r\n\tspring.redis.port=6379\r\n\tspring.redis.pool.max-idle=8\r\n\tspring.redis.pool.min-idle=0\r\n\tspring.redis.pool.max-active=8\r\n\tspring.redis.pool.max-wait=-1\r\n\tspring.redis.timeout=500\r\n\t\r\n\t# Logging\r\n\tlogging.level.*=debug\r\n\tlogging.level.com.silence.repository=debug\r\n\tlogging.file=./log/spring.log\r\n\t\r\n### 构建 ###\r\n\r\n* git clone https://github.com/scalad/WebSocket.git\r\n* gradle bootRun\r\n* swagger ui reference =\u003e http://localhost/swagger-ui.html\r\n* druid manage reference =\u003e http://localhost/druid/index.html\r\n\t* username:admin \r\n\t* password:admin\r\n* inded page reference =\u003e http://localhost/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscalad%2Flayim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscalad%2Flayim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscalad%2Flayim/lists"}