1.1 基础对象 #ctx:上下文对象 ${#ctx.locale} ${#ctx.variableNames} ${#ctx.request} ${#ctx.response} ${#ctx.session} ${#ctx.servletContext} #locale:直接访问java.util ...
分类:
编程语言 时间:
2020-06-15 22:54:30
阅读次数:
70
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId><exclusions><exclusion><groupId>org.springframewo
分类:
编程语言 时间:
2020-06-15 22:39:30
阅读次数:
67
今天整理了Maven的pom.xml文件后,把多个项目用maven集成在了一起,结果在启动Tomcat的时候,遇到一个奇葩的错误: 严重: Servlet [spring] in web application [/AbcWeb] threw load() exception java.lang.I ...
分类:
编程语言 时间:
2020-06-15 22:33:28
阅读次数:
50
环境 JDK 6 JUnit 4.13 Spring Tool Suite 4.6.2 Maven 3.6.3 Rules 官网描述如下: Rules allow very flexible addition or redefinition of the behavior of each test ...
分类:
其他好文 时间:
2020-06-15 22:32:10
阅读次数:
47
问题来源: Spring Boot 项目集成 ActiveMQ。 报错内容: Description:Field jmsTemplate in XXX required a bean of type 'org.springframework.jms.core.JmsMessagingTemplate ...
分类:
编程语言 时间:
2020-06-15 21:17:09
阅读次数:
136
1、导入jar包:spring-webmvc <!-- springmvc的依赖 --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>4.3.3 ...
分类:
编程语言 时间:
2020-06-15 21:08:55
阅读次数:
60
@Configuration @Configuration包含了@Component,所以被其注解的类自身也会被纳入到bean容器中,但是纳入的是经过cglib增强的子类(代理类)。 @Configuration标记的类必须符合下面的要求: 配置类必须以类的形式提供(不能是工厂方法返回的实例)。允许 ...
分类:
编程语言 时间:
2020-06-15 20:44:23
阅读次数:
51
is not a @Sharable handler解决方法 昨天在写编码器的时候,因为是和spring整合,因此在使用编码的时候用Autowired自动注入 @Autowired private ProtocolDecoder protocolDecoder ; @Autowired privat ...
分类:
其他好文 时间:
2020-06-15 19:22:53
阅读次数:
113
客户说数据库的CPU使用率为100%,应用相应迟缓。发现是latch: cache buffers chains 作祟故障分析思路 查看等待事件,判断故障起因 1 SQL>select * from (select sid,event,p1,p2,p3,p1text,WAIT_TIME,SECOND ...
分类:
系统相关 时间:
2020-06-15 18:04:23
阅读次数:
73
Spring Cloud Gateway 内置Filter Spring Cloud Gateway中内置了很多过滤器,实现类有二十多个; 分类几类: AddRequestHeader 给请求加上一条header信息; spring: cloud: gateway: routes: - id: ad ...
分类:
编程语言 时间:
2020-06-15 17:57:42
阅读次数:
68