![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Springboot2
JayXu6888
这个作者很懒,什么都没留下…
展开
-
毕设20200529 Spring Boot 1 Spring Boot 2设置默认首页的正确姿势(三种方法) - 如何访问localhost:8080直接打开swagger-ui界面
文章目录方法一:DefaultController实现方法二:使用SpringDefaultView实现2.1 Spring老版本中的写法2.2 Spring5中的正确姿势方法三:配置监听事件直接打开Swagger界面(亲测仅适用于Windows)※需要配置Swagger-ui,并使用Spring Boot 2的看官直接看方法2.2即可。方法一:DefaultController实现首先申明:这个方法适合自己项目里面带的index页面使用,不适合swagger-ui.html使用(跳转不过去,也显示不原创 2020-05-30 04:31:13 · 1373 阅读 · 0 评论 -
Spring Boot2使用Log4j2
文章目录Step1. 排除Spring Boot自带的logging包(logback)Step2. 在resource下面加入log4j2.xml或者log4j2-spring.xmlStep3. 编写log4j2.xmlStep4. 控制台打印彩色日志Step1. 排除Spring Boot自带的logging包(logback)<dependency> <groupId>org.springframework.boot</groupId> <原创 2020-05-30 03:49:51 · 236 阅读 · 0 评论 -
idea上面的Change Active Spring Profiles
IDEA官方参考资料上搜索:Change Active Spring Profileshttps://www.jetbrains.com/help/idea/spring-support.html原创 2020-05-26 08:29:11 · 21951 阅读 · 0 评论 -
Itellij Idea 2020.1官方操作手册地址
Springhttps://www.jetbrains.com/help/idea/2020.1/spring-support.htmlSpring Boothttps://www.jetbrains.com/help/idea/2020.1/spring-boot.html原创 2020-05-26 07:42:55 · 507 阅读 · 0 评论 -
Spring Boot integrated with Thymeleaf- namespace 'th' is not found
When we create a html file in the templates directory in a spring boot project integrated with Thymeleaf view, we will find the namespace ‘th’ is unavailable.If you hover your mouse to see the hint, it will alert like this: namespace ‘th’ is not found.Th原创 2020-05-10 08:45:49 · 419 阅读 · 0 评论