
springboot
小蜗牛的路
一步一步往上爬
展开
-
Linux环境项目以jar包形式启动,调用外部配置文件命令
nohup java -jar -Dspring.config.location=/绝对路径/application.properties /xxx/xxx.jar > /xxx/xxx.log &原创 2020-12-04 12:13:51 · 2629 阅读 · 0 评论 -
spring boot2.0.5+jpa+websocket
@Configurationpublic class WebSocketConfig { @Bean public ServerEndpointExporter serverEndpointExporter() { return new ServerEndpointExporter(); }}单线程管理websocket连接//@Server...原创 2019-01-11 16:18:34 · 596 阅读 · 0 评论 -
springboot response返回json对象乱码问题
1.tomcat编码server: tomcat: uri-encoding: UTF-82.http编码spring: http: encoding: force: true charset: utf-8 enabled: true3.response返回类型response.setContentType("tex...原创 2019-03-06 18:02:32 · 5121 阅读 · 1 评论