随笔分类 -  spirngboot

springboot的笔记
摘要:一、在pom.xml中的build加入以下配置: <build> <finalName>${project.artifactId}</finalName> <plugins> <!--打包跳过测试类--> <plugin> <artifactId>maven-surefire-plugin</art 阅读全文
posted @ 2022-02-11 11:29 花碎梦亦寒 阅读(560) 评论(0) 推荐(0)
摘要:在启动springboot项目的时候,会停顿好长时间才开始打印日志。 对于强迫症这是受不了的。 查看第一行的日志打印。 InetAddress.getLocalHost().getHostName() took 5004 milliseconds to respond. Please verify 阅读全文
posted @ 2020-04-03 17:40 花碎梦亦寒 阅读(4675) 评论(0) 推荐(2)
摘要:在开发过程可以使用springboot内嵌的Tomcat容器进行调试并且可以进行热部署, 一、 热部署实现 当我们修改了类文件后,idea不会自动编译,得修改idea设置。 (1)File-Settings-Compiler-Build Project automatically (2)ctrl + 阅读全文
posted @ 2020-03-24 13:54 花碎梦亦寒 阅读(427) 评论(0) 推荐(0)
摘要:springboot拦截器 说明:和springmvc一样去实现HandlerInterceptor接口 import org.springframework.stereotype.Component; import org.springframework.web.servlet.HandlerIn 阅读全文
posted @ 2020-03-10 21:54 花碎梦亦寒 阅读(663) 评论(0) 推荐(0)