Spring and Guice together, or just Spring

后端 未结 5 1980
盖世英雄少女心
盖世英雄少女心 2020-12-31 00:01

I\'m starting a new Java web app from scratch.

I don\'t have much experience on Spring Framework, but I know I\'d like to use some of its features, such as Transacc

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-31 00:59

    I think Spring alone is good enough for enterprise application.

    Spring dosent need XML too!!! Modern Spring Apps uses JavaConfig and minimal configuration. Take look at Spring Boot Guides. Whole Spring apps can not use any XML at all.

    Guice is nice, but very limited. With Spring is possible to write web application or REST application with transactions and persistance very easy and fast. With Guice this is more complicated.

提交回复
热议问题