This commit is contained in:
xiangwbs
2018-03-15 11:25:35 +08:00
parent 024bb37f13
commit 31c7f0e21c
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -67,6 +67,12 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>
<!-- 支持@ConfigurationProperties注解-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
<build>
<finalName>boot-web</finalName>
@@ -18,6 +18,7 @@ import javax.servlet.Filter;
@Configuration//相当于.xml文件中的<beans></beans>
//@Import(xxx.class)//用来导入其他配置类
//@ImportResource("classpath:applicationContext.xml")//用来加载其他xml配置文件
//@ConfigurationProperties(prefix="myProps") //接收application.yml中的myProps下面的所有属性
public class ApplicationContextConfig {
/**
* encoding编码问题(springBoot默认已经配置好)