记录Springboot的themeleaf的网页前端刷新一次请求但是后台Controller执行两次的问题

it2025-04-28  10

具体可以参考的链接有:

https://www.oschina.net/question/3231567_2271167?sort=time

https://blog.csdn.net/weixin_38958405/article/details/81016246?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.edu_weight&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.edu_weight

https://blog.csdn.net/ljj2312/article/details/79487902

https://blog.csdn.net/donggu3451/article/details/101311605?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.edu_weight&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.edu_weight

https://blog.csdn.net/thelastperfect/article/details/23130657?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-3.edu_weight&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-3.edu_weight

https://blog.csdn.net/SkyAndSea001/article/details/87189787?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.edu_weight&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.edu_weight

https://www.imooc.com/qadetail/130293?t=156286

https://blog.csdn.net/aa54682002/article/details/99646175

但是我自己的都是因为在网页前端 body前面引入了bootstrap-4.3.1.min.js这个js资源就会出现点一次网页,后端的controller执行两次的问题。罪魁祸首是这个js,可以注释掉,也可以放在body后面的script。

奇葩的一次记录!

最新回复(0)