springboot
徒步@天涯
一切都是最好的安排
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
idea断点进不去的解决办法
1. rebuild项目2. 重新打包:mvn clean install package -DskipTests=true原创 2022-11-05 11:41:51 · 863 阅读 · 0 评论 -
关于spring-boot中logback日志配置引用spring环境变量的使用方式
在使用spring-boot开发过程中,可以通过修改logback配置文件属性声明,就可以引用到spring环境变量,如application.properties中的变量。原创 2022-11-01 08:54:34 · 2123 阅读 · 0 评论 -
SpringBoot 整合slf4j 日志配置
slf4j,即()。它是对所有日志框架,并不是一个框架的具体的实现,它只服务于各种各样的日志系统。slf4j提供了统一的记录日志的接口,对不同日志系统的具体实现进行了抽象化,只要按照其提供的方法记录即可,最终日志的格式、记录级别、输出方式等通过绑定具体的日志系统来实现。在项目中使用了slf4j记录日志,并且绑定了log4j(pom.xml中配置了相应的jar包依赖),则日志会以log4j的风格输出;原创 2022-11-01 08:50:50 · 725 阅读 · 0 评论 -
SpringBoot 修改上传文件大小限制upload file size
请在配置文件(application.properties/application.yml)中加入如下设置即可。原创 2022-09-03 16:57:57 · 1374 阅读 · 0 评论 -
Spring 国际化 异常:No message found under code ‘UNKONWNERROR‘ for locale ‘null‘
Spring国际化配置:<bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource"> <property name="basename" value="resource" /> </bean>异常:org.springframework.context.NoSuchMessageExcep...原创 2021-10-20 15:19:14 · 1739 阅读 · 0 评论 -
Singleton bean creation not allowed while singletons of this factory are in destruction
一直都是正常运行的程序,检查日志发现有一条报错如下:org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'orderController': Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a bean原创 2021-10-20 15:11:59 · 2502 阅读 · 0 评论 -
maven打包scope=system依赖时无法将 jar打进包的问题
正常情况下,scope=system的包是不会打进包中的。此时如果需要将jar包打输出到lib中,需添加配includeSystemScope=true<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> &...原创 2021-09-03 17:08:34 · 1834 阅读 · 1 评论 -
IDEA 配置 SpringBoot 启动端口
原创 2020-06-03 03:22:02 · 1299 阅读 · 0 评论 -
springboot jar部署,在Linux终端控制台日志乱码
怀疑日志乱码和终端的编码有关。查看编码# locale修改编码为UTF-8export LANG=zh_CN.UTF-8查看日志仍然为乱码。修改logback-boot.xml文件,设置charset, 在encoder 中增加一行<charset>UTF-8</charset>,重新启动系统,日志中中文显示正常了。<encoder&g...原创 2019-10-19 20:11:35 · 2207 阅读 · 0 评论 -
spring boot+redis 实现分布式会话
1、pom文件中引入依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId></dependency><dependency...原创 2019-08-12 14:40:38 · 385 阅读 · 0 评论 -
thymeleaf和vue的关系
Thymeleaf和vue不是一类事务。模板引擎:Thymeleaf、freemarker、JSP。前端框架:vue、angularjs、react。Thymeleaf是一个替代JSP的模板引擎。使用Thymeleaf或其他模板的时候也可以使用前端框架。现在github上很多工程就是springboot+Thymeleaf+vue三者结合的,如:https://github...原创 2019-08-08 16:44:40 · 11095 阅读 · 0 评论 -
springboot集成thyemleaf解除严格html5格式校验问题
用springboot加thyemleaf做静态模板,静态模板对html的格式非常严格,导致很多框架的格式都用不了,解除方法:1.在pom中添加依赖:<dependency> <groupId>net.sourceforge.nekohtml</groupId> <artifactId>ne...转载 2019-07-18 09:32:37 · 434 阅读 · 1 评论 -
session fixation attack修复方法
Springboot集成Security+redis进行分布式会话,报错:Your servlet container did not change the session ID when a new session was created. You will not be adequately protected against session-fixation attacks解决办法:...原创 2019-03-10 11:36:28 · 1664 阅读 · 0 评论 -
spring boot 搭建web项目
https://blog.youkuaiyun.com/fyhailin/article/details/79413864亲测可用在访问测试地址时,可能会碰到变成下载页面的问题。请参考如下地址:https://blog.youkuaiyun.com/uniqueweimeijun/article/details/83956527同时请重新编译一下:App.java...转载 2019-02-23 11:32:02 · 183 阅读 · 0 评论 -
定制个性 banner
参看贴子:https://blog.youkuaiyun.com/u012373815/article/details/54948673注:生成字符,只能输入英文,可以输入公司英文简称http://patorjk.com/software/taag/#p=display&f=Big&t=i2f...转载 2019-02-02 09:09:18 · 425 阅读 · 0 评论
分享