随笔 - 32,  文章 - 0,  评论 - 6,  阅读 - 76044

随笔分类 -  Spring-boot

Springboot 解决跨域的四种姿势 !
摘要:实现 WebMvcConfigurer#addCorsMappings 的方法 import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.ann 阅读全文
posted @ 2021-11-25 13:49 小胡桐 阅读(107) 评论(0) 推荐(0) 编辑
性能分析拦截器,用于输出每条 SQL 语句及其执行时间
摘要:/** 性能分析拦截器,用于输出每条 SQL 语句及其执行时间 */ @Bean public PerformanceInterceptor performanceInterceptor() { PerformanceInterceptor performanceInterceptor = new 阅读全文
posted @ 2020-12-14 15:14 小胡桐 阅读(349) 评论(0) 推荐(0) 编辑
spring-Boot 热部署
摘要:一、实现的方式概述 注意以下的热部署方式在IDEA是默认没有打开自动编译的,手动编译需要快捷键(Ctrl+Shift+F9),自动编译的修改配置如下:(注意刷新不要太快,会有1-2秒延迟) 二、spring-boot-devtools 在pom中直接引入依赖 设置以下两项(第一项如已设置直接设置第二 阅读全文
posted @ 2019-04-22 15:55 小胡桐 阅读(238) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示