![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
wocan23
编程爱好者
展开
-
springboot两个版1.5.8和1.5.22在路径包含大括号区别
1.5.8得使用下面属性 启动参数中增加以下配置tomcat.util.http.parser.HttpParser.requestTargetAllow如:-Dtomcat.util.http.parser.HttpParser.requestTargetAllow={}|源码如下 static { String prop = System.getProperty("tomcat.util.http.parser.HttpParser.requestTa原创 2020-11-12 14:23:40 · 564 阅读 · 2 评论 -
springboot加@EnableRedisHttpSession注解后namespace配置失效
配置和注解是配置的两种方式,加注解后,``` public void setRedisNamespace(String namespace) { this.redisNamespace = namespace; }```该方法得不到调用,不加注解则SpringBootRedisHttpSessionConfiguration类```//// Source code recreated from a .class file by IntelliJ IDEA...原创 2020-11-12 13:48:23 · 2270 阅读 · 2 评论 -
springAop多个切面如何实现
这里采用默认的jdk代理模式获取代理,cglib原理类似jdk代理的源码为:/* * Copyright 2002-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file ...原创 2019-06-14 17:47:46 · 3088 阅读 · 0 评论 -
yaml属性源PropertySourcesPlaceholderConfigurer对象
当注册yaml属性源当时候发现,获取@Value注解或者注入普通对象当时候会报空指针异常@Bean public PropertySourcesPlaceholderConfigurer properties() { PropertySourcesPlaceholderConfigurer configurer = new PropertySourcesPlaceho...原创 2019-06-14 17:50:20 · 2093 阅读 · 0 评论