Spring
Acmen-zym
这个作者很懒,什么都没留下…
展开
-
Java拦截器HandlerInterceptor重写preHandle方法时HttpServletRequest无法获取自定义请求头参数问题
Java拦截器配置原创 2023-01-03 18:59:33 · 8265 阅读 · 1 评论 -
gateway启动出现java.lang.IllegalArgumentException: Unable to find GatewayFilterFactory with name ****
具体错误 Caused by: java.lang.IllegalArgumentException: Unable to find GatewayFilterFactory with name UserToken at org.springframework.cloud.gateway.route.RouteDefinitionRouteLocator.loadGatewayFilters(RouteDefinitionRouteLocator.java:187) ~[spring-cloud-gat原创 2022-05-23 13:50:35 · 7508 阅读 · 1 评论 -
自定义一个SpringUtil用于通过静态方法获取被spring管理的bean对象,用于在静态方法中使用IOC中的bean或者是没有被spring管理的类中使用IOC容器的bean
@Component public class SpringUtil implements ApplicationContextAware { private static ApplicationContext applicationContext; @Override public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { i原创 2022-03-17 15:21:03 · 5905 阅读 · 0 评论