SpringBoot
IT_ZhiCunGaoYuan
不忘初心,继续前进 。功崇惟志,业广惟勤
展开
-
springmvc 使用注解配置欢迎页源码分析
自定义的欢迎也需要在放在上面所在文件夹目录中(笔者的springboot工程中在resources 目录下新建了一个resources 目录 自定义的index.html放在该目录下)原创 2021-09-15 18:04:19 · 191 阅读 · 0 评论 -
SpringBoot exclude的使用
SpringBoot 集成security 使用其加密方法集成 spring-boot-starter-security取消自动注入(java配置或者是properties文件中配置)使用 BCryptPasswordEncoder 加密结果 : 启动时控制台不在有security 默认的密码 ,引用BCryptpassword得到加密后的密钥串集成 spring-boot-starter-security <dependency> <groupId>o原创 2021-02-20 22:16:36 · 1886 阅读 · 0 评论 -
spring boot 2.X 使用tomcat 9.X版本issue
spring boot 2.X 使用tomcat 9.X版本issue启动异常异常分析解决方案(tomcat bean 配置)结果 :再次启动无报错 有效启动异常The HTTP header line [spas-accesskey0x0d] does not conform to RFC 7230 and has been ignored异常分析The way that errors that occur very early during HTTP request processing a原创 2021-02-20 17:03:39 · 641 阅读 · 0 评论 -
spring webflux自定义netty 参数
自定义 webflux 容器配置配置代码@Componentpublic class ContainerConfig extends ReactiveWebServerFactoryCustomizer { public ContainerConfig(ServerProperties serverProperties) { super(serverPropertie...原创 2020-04-30 22:56:32 · 1471 阅读 · 0 评论 -
Spring Boot使用@Async实现异步调用:自定义线程池
场景:1:微服务各个应用程序将日志收集到日志服务系统中 ,消费日志收集到日志系统时 如果上传日志信息花费相当长的时间 ,此时的应用对外提供的服务收到阻塞 。2:微服务中的每个服务集成Kafka 时 启动服务阻塞解决方案: 自定义线程 异步调用 (核心配置如下)@Configuration@EnableAsyncpublic class ExecutorConf {...原创 2019-11-08 10:49:21 · 334 阅读 · 0 评论