• Stars
    star
    258
  • Rank 153,358 (Top 4 %)
  • Language
    Scala
  • Created over 7 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

基于HTML5 WebSocket的一款IM即时通讯软件,使用Gradle集成了Scala、SpringBoot、Spring MVC、Mybatis、Redis等,前端使用了LayIm框架

SpringBoot-WebSocket

一个基于WebSocketLayIM的即时通讯系统,后台使用了Gradle集成了Spring BootScalaMybatisDevTools SpringBoot热部署方案以及Redis

需要

  • Scala 2.1+
  • JDK 1.8+
  • Gradle 3.+
  • Mysql 5.0+
  • Redis

技术

  • Gradle
  • Scala
  • SpringBoot
  • SpringSecurity
  • Mybatis And PageHelper
  • Redis
  • Alibaba Druid
  • Java Mail

界面

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

# Email
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

构建

More Repositories

1

Note

常规Java工具,算法,加密,数据库,面试题,源代码分析,解决方案
Java
2,079
star
2

SpringBoot-RabbitMQ

RabbitMQ为异步消息处理提出了一个很好的解决方案,它是一个非常好用的消息中间件,主要用于中间件的解耦,同时,Spring Boot为RabbitMQ提供了支持, Spring Boot为Rabbit准备了spring-boot-starter-amqp,spring-rabbit 支持 AMQP(即Advanced Message Queuing Protocol,高级消息队列协议,是应用层协议的一个开放标准),并且为RabbitTemplate和RabbitMQ提供了自动配置选项
Java
178
star
3

SpringBoot-Scala

可以说近几年Spark的流行带动了Scala的发展,它集成了面向对象编程和函数式编程的各种特性,Scala具有更纯Lambda表粹的函数式业务逻辑解决方案,其语法比Java8后Lambda更加简洁方便,SpringBoot为Spring提供了一种更加方便快捷的方式,不再要求写大量的配置文件,作为一名Scala爱好者,使用SpringBoot结合Scala将大大节省我们开发的时间以及代码量
Scala
61
star
4

Book

本项目收藏这些年来看过或者听过的一些不错的书籍,在整理文件时看见这些,发现删掉有点可惜,放着又太浪费空间,本着分享的原则,就把它们共享出来,一方面给需要的读者提供这些书籍,另一方面也是一种像知识库的积累吧
49
star
5

MathML2MathTypeEquation

使用C#调用MathType将MathML格式的公式转换为MathType类型的公式并写入到Word中)Using MathType to converting MathML to mathtype equation and embedded in microsoft word document. Also, you can convert html into word,including tables、image or rank tag
C#
38
star
6

JacobMathType

JACOB是一个 Java到微软的COM接口的桥梁。使用JACOB允许任何JVM访问COM对象,从而使JAVA应用程序能够调用COM对象,;MathType 是由美国Design Science公司开发的功能强大的数学公式编辑器,它同时支持Windows和Macintosh 操作系统,与常见的文字处理软件和演示程序配合使用,能够在各种文档中加入复杂的数学公式和符号,本文演示如何使用jacob调用MathType库来操作Word文档
Java
31
star
7

MathML2Word

如何将MATHML[MATHML(Mathematical Markup Language,MathML)是一种基于XML的标准,用来描述数学符号和公式。它的目标是把数学公式集成到万维网和其他文档中。从2015年开始,MathML成为了HTML5的一部分和ISO标准]转为Word中包含各种数学公式的文档,有些时候,我们想要将MATHML导出到Word中方便查看,我们该怎样实现呢?这个时候我们还需要了解一下微软Office的OMML(Office math markup language)标记语言,它是一种在WORD里面进行公式表达的标记语法,是以XML结构来存储的。遗憾的是,MATHML并不能直接转换为Word文档,它需要先转换为OMML
C#
26
star
8

Elasticsearch

Elasticsearch是一个实时的分布式搜索和分析引擎,
24
star
9

DBUtils

Apache DBUtils是个小巧的JDBC轻量级封装的工具包,其最核心的特性是结果集的封装,可以直接将查询出来的结果集封装成JavaBean,这就为我们做了最枯燥乏味、最容易出错的一大部分工作
Java
9
star
10

FrontJS

Some rannalhi javascript website effect collections, some javascript、angularjs、jQuery、HTML5 rannalhi website
JavaScript
6
star
11

Akka

多核处理器的出现使并发编程(Concurrent Programming)成为开发人员必备的一项技能,许多现代编程语言都致力于解决并发编程问题。并发编程虽然能够提高程序的性能,但传统并发编程的共享内存通信机制对开发人员的编程技能要求很高,需要开发人员通过自身的专业编程技能去避免死锁、互斥等待及竞争条件(Race Condition)等,熟悉Java语言并发编程的读者们对这些问题的理解会比较深刻,这些问题使得并发编程比顺序编程要困难得多。 Scala语言并没有直接使用Java语言提供的并发编程库,而是通过Actor模型来解决Java并发编程中遇到的各种问题,为并发编程提供了更高级的抽象。
Scala
2
star