© 1999-2048 dssz.net 粤ICP备11031372号
[其它] SpringBoot:springboot基础服务-源码
说明:## SpringBoot的基础工程1.过滤器的使用2.properties文件的使用2.1 application.properties/yml文件,可以直接使用Value注入; 2.2其他的属性文件需要使用PropertySource(“ classpath:/config/cs.properties”)来指定文件的位置(只要存在该注解即可),然后再使用Value注入; 2.3将属性文件装配成一个bean, ConfigurationProperties(前缀=“ springboot.pr<weixin_42101164> 上传 | 大小:436kb