springboot
Joy666888
学习
展开
-
springboot之配置文件
代码从开发到测试要经过各种环境,开发环境,测试环境,demo环境,线上环境,各种环境的配置都不一样,同时要方便各种角色如运维,接口测试, 功能测试,全链路测试的配置,hardcode 肯定不合适,如Spring profile一样写在jar包不合适.分布式应用中一般采用集中管理配置的方式,通过使用开源软件,如阿里的diamond,netflix的consul等等,SpringBoot中提供了各种各原创 2017-05-24 20:35:13 · 195 阅读 · 0 评论 -
springboot过滤器
@Bean public FilterRegistrationBean someFilterRegistration() { FilterRegistrationBean registration = new FilterRegistrationBean(); registration.setFilter(simpleCORSFilter()); registrat原创 2017-06-06 19:56:57 · 169 阅读 · 0 评论