Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scalad/layim
基于HTML5 WebSocket的一款IM即时通讯软件,使用Gradle集成了Scala、SpringBoot、Spring MVC、Mybatis、Redis等,前端使用了LayIm框架
https://github.com/scalad/layim
druid layim mybatis scala spring-boot websocket
Last synced: 5 days ago
JSON representation
基于HTML5 WebSocket的一款IM即时通讯软件,使用Gradle集成了Scala、SpringBoot、Spring MVC、Mybatis、Redis等,前端使用了LayIm框架
- Host: GitHub
- URL: https://github.com/scalad/layim
- Owner: scalad
- Created: 2016-11-28T13:43:01.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-26T01:02:03.000Z (over 7 years ago)
- Last Synced: 2024-12-05T13:35:40.861Z (18 days ago)
- Topics: druid, layim, mybatis, scala, spring-boot, websocket
- Language: Scala
- 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
- Size: 18.6 MB
- Stars: 262
- Watchers: 21
- Forks: 158
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### SpringBoot-WebSocket ###
一个基于[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/)等
### 需要 ###
* Scala 2.1+
* JDK 1.8+
* Gradle 3.+
* Mysql 5.0+
* Redis### 技术 ###
* [Gradle](https://gradle.org/install)
* Scala
* SpringBoot
* SpringSecurity
* Mybatis And PageHelper
* Redis
* Alibaba Druid
* Java Mail### 界面 ###
![](https://github.com/scalad/WebSocket/blob/master/doc/image/Gif.gif)
### application.properties配置文件 ###
你需要在这里配置你的Mysql数据库,Redis以及邮件服务器,如果不需要邮件相关服务,你可以在UserService.scala中注释掉相关的代码
# Application
spring.application.name=LayIM
# Mybayis
mybatis.mapper-locations=classpath*:/mapper/*Mapper.xml
mybatis.configuration.map-underscore-to-camel-case=true
mybatis.configuration.use-generated-keys=true
mybatis.configuration.default-fetch-size=100
mybatis.configuration.default-statement-timeout=30
spring.jpa.show-sql=true
# Datasource
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
spring.datasource.url = jdbc:mysql://localhost:3306/websocket
spring.datasource.username = root
spring.datasource.password = root
spring.datasource.driver-class-name= com.mysql.jdbc.Driver
# Spring MVC
spring.mvc.view.prefix=/WEB-INF/view/
spring.mvc.view.suffix=.jsp
spring.http.multipart.max-file-size=50MB
spring.http.multipart.max-request-size=50MB
# Server
server.port=80
server.session.timeout=1800
spring.mail.host=smtp.qq.com
[email protected]
spring.mail.password=ugmgoaidcsaobbaf
spring.mail.port=587
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.starttls.enable=true
spring.mail.properties.mail.smtp.starttls.required=true
# Redis Configration
# Redis database index, default is 0
spring.redis.database=0
spring.redis.host=120.27.114.229
spring.redis.password=redis
spring.redis.port=6379
spring.redis.pool.max-idle=8
spring.redis.pool.min-idle=0
spring.redis.pool.max-active=8
spring.redis.pool.max-wait=-1
spring.redis.timeout=500
# Logging
logging.level.*=debug
logging.level.com.silence.repository=debug
logging.file=./log/spring.log
### 构建 ###* git clone https://github.com/scalad/WebSocket.git
* gradle bootRun
* swagger ui reference => http://localhost/swagger-ui.html
* druid manage reference => http://localhost/druid/index.html
* username:admin
* password:admin
* inded page reference => http://localhost/