摘要: 首先,建立xxx.properties 文件在resource文件夹中,此处我们自定义的配置文件是oj-config.properties 然后,在applicationContext.xml中注册这个配置文件 最后,在JAVA代码中使用注解配置到相应的属性上(特别注意,该属性不可以使用static 阅读全文
posted @ 2019-08-15 08:46 AXiangCoding 阅读(606) 评论(0) 推荐(0) 编辑