摘要: 之前springboot项目常量类如下形式: 然后在配置文件properties中写test1=123 controller中应用 @Autowired private Constants constants; @GetMapping("/test") public String test(){ l 阅读全文
posted @ 2019-09-12 14:06 醉逍遥_001 阅读(6119) 评论(1) 推荐(2) 编辑
摘要: 最近公司想要用配置中心,因为公司用的有传统的spring项目,有springboot项目,为了兼容都能够采用配置中心,做了一些尝试,经过比较还是倾向于使用nacos,传统dubbo采用spring方式读取xml读取配置文件的方式启动,其配置数据源,redis,rabbitmq等采用的是xml的配置, 阅读全文
posted @ 2019-09-12 10:49 醉逍遥_001 阅读(3036) 评论(0) 推荐(0) 编辑