spring.codeconfig

spring.codeconfig vs xml configuration

主宰稳场 提交于 2019-12-02 07:32:21
问题 I've been using spring.net with xml configuration for some times, and I just saw that spring team released CodeConfig a month ago. What I like about the xml config is that if I have a problem on the live server I can easily change the xml configuration to enable some specific debugging settings, or disable a specific component simply changing the xml configuration. What is the advantage of using a code configuration instead of an xml configuration other than compile time check? 回答1: With code

spring.codeconfig vs xml configuration

烈酒焚心 提交于 2019-12-02 03:19:50
I've been using spring.net with xml configuration for some times, and I just saw that spring team released CodeConfig a month ago. What I like about the xml config is that if I have a problem on the live server I can easily change the xml configuration to enable some specific debugging settings, or disable a specific component simply changing the xml configuration. What is the advantage of using a code configuration instead of an xml configuration other than compile time check? With code config, possible benefits you could get are: Better refactoring support; e.g. renaming an injected property