SpringBoot
文章平均质量分 88
gong0585
这个作者很懒,什么都没留下…
展开
-
centos 里面的service自启动app.jar,出现两个java进程,app是同一个端口
app.jar通过service启动后,居然出现两个启动进程,而且他们的端口都一样,同一端口,是不允许启动两个相同app的。原创 2023-10-13 12:33:59 · 1536 阅读 · 0 评论 -
在centos下使用SockJS和STOMP.js运行时报错
1.配置环境CentOS-8.1.1911-x86_64-dvd1.isoSpringBoot2.1.2.RELEASEstomp-websocket2.3.3-12.chrome浏览器报,错误提示如下:Opening Web Socket...stomp.js:145 Whoops! Lost connection to http://192.168.7.3/ws/shootingpointVM321 htmlfile:8 Uncaught DOMException: Bl..原创 2021-01-15 18:00:11 · 1194 阅读 · 2 评论 -
MyBatis cache失效
现象描述:在Mapper.xml里面启用了全局缓存<cache/>用户提交了更新操作,业务操作为status=2.但页面查询的表状态还是status=1.查找数据库发现status=2也就是MyBatis的缓存读到之前的status=1的未提交数据,但数据库确实已经改为status=2分析原因:页面有个操作,在Ajax的POST提交的同时。就开始重定向到页面查询...原创 2019-10-25 10:06:48 · 362 阅读 · 0 评论 -
Springboot devtools热部署Mybatis报错
使用SpringBoot devtools热部署功能,Mybatis出现无法找到映射文件的错误提示,导致无法启动web服务器错误提示:Caused by: java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load...原创 2019-02-15 11:00:02 · 1452 阅读 · 1 评论