spring.codeconfig vs xml configuration

后端 未结 2 1265
梦谈多话
梦谈多话 2021-01-24 04:08

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 t

2条回答
  •  自闭症患者
    2021-01-24 04:19

    Just to highlight one thing, you can mix and match configuration styles. From within a CodeConfig class you can refere to XML config files using the [ImportResource] attribute (see here), and in the XML you can use the namespace (see here).

    Cheers, Mark

提交回复
热议问题