SpringBoot
文章平均质量分 56
彩色贝
学无止境,加油
展开
-
SpringBoot 中读取应用配置&按各种条件装配
注:前期学习时的有道云笔记,后期翻看时觉得又是一番滋味,分享出来给大家,如有错误欢迎支出,并请大家谅解!感谢 1.读取应用配置 1.1Environment Environment 通用的配置读取类,可以读取application.properties, application.yml ,命令行输入参数、系统属性、操作系统环境变量,可以通过Spring 容器自动注入,可以使用如下: @Config...原创 2019-11-16 15:10:38 · 811 阅读 · 0 评论 -
logback中的日志配置参数解析
springboot 中默认实现为LogBack,使用apache commons Logging 作为日志接口,因此代码通常这样: public class FooControlelr{ private Log log = LogFactory.getLog(FooControlelr.class); ... } 日志每行内容格式如下: 1)日期和时间; 2) 日志级别; 3)进程id,S...原创 2019-11-16 14:05:02 · 2111 阅读 · 0 评论 -
Whitelabel Error PageThis application has no explicit mapping for /error, spring and thymeleaf
异常信息:Whitelabel Error PageThis application has no explicit mapping for /error, so you are seeing this as a fallback.Sun May 13 17:18:55 CST 2018There was an unexpected error (type=Not Found, status=40...原创 2018-05-13 18:13:37 · 6475 阅读 · 2 评论 -
Eclipse 中Thymeleaf 自动提示
在Eclipse中安装Thymeleaf插件即可。插件的地址为:http://www.thymeleaf.org/eclipse-plugin-update-site/安装过程可以见http://blog.csdn.net/king_kgh/article/details/76084398原文地址:https://blog.csdn.net/king_kgh/article/details/760...转载 2018-05-13 18:42:12 · 1970 阅读 · 0 评论 -
Springboot 使用redis
在pom.xml 中引入如下<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId></dependency> 在springboot-autoco...原创 2018-05-28 18:21:34 · 179 阅读 · 0 评论