<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
Spring Cloud Gateway 内置Filter Spring Cloud Gateway中内置了很多过滤器,实现类有二十多个; 分类几类: AddRequestHeader 给请求加上一条header信息; spring: cloud: gateway: routes: - id: ad ...
分类:
编程语言 时间:
2020-06-15 17:57:42
阅读次数:
68
Spring Boot整合JSP和Freemarker 写在前面 从零开始的Spring Boot(3、Spring Boot静态资源和文件上传) https://www.cnblogs.com/gaolight/p/13130406.html 一、Spring Boot整合JSP 创建工程spri ...
分类:
编程语言 时间:
2020-06-15 17:53:45
阅读次数:
62
pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance ...
分类:
编程语言 时间:
2020-06-15 17:44:28
阅读次数:
56