摘要: 一、广播式 广播式即服务端有消息时,会将消息发送给所有连接了当前endpoint的浏览器 1.配置websocket,需要在配置类上使用@EnableWebSocketMessageBroker开启websocket支持,并通过继承AbstractWebSocketMessageBrokerConf 阅读全文
posted @ 2017-04-16 20:04 kevin_shen 阅读(456) 评论(0) 推荐(0) 编辑
摘要: 1. 模板引擎 spring boot提供了大量的模板引擎,包括FreeMark、Groovy、Thymeleaf、Velocity等,但spring boot中推荐用Thymeleaf,因为Thymeleaf提供了完美的spring mvc的支持。 2. 与spring boot集成 在sprin 阅读全文
posted @ 2017-04-16 17:44 kevin_shen 阅读(7711) 评论(0) 推荐(0) 编辑
摘要: Spring boot 的运行原理 Spring boot关于自动配置的源码在spring-boot-autoconfigure-xxxx.jar内。 一、可以通过下面三种方式查看当前项目中已启用和未启用的自动配置的报告 1. 运行jar是增加--debug参数: java -jar xxx.jar 阅读全文
posted @ 2017-04-16 14:21 kevin_shen 阅读(1897) 评论(0) 推荐(0) 编辑