随笔分类 -  Spring-boot

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