How does the EnableAutoConfiguration spring annotation work?

后端 未结 2 905
南旧
南旧 2021-02-01 05:00

I am no fan of gross over abstractions, And i think Spring has committed a major felony.

But I\'m willing to overlook it this time if someone can explain the algo

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-01 05:30

    There is some documentation in the Spring Boot Reference Guide. It's not terribly complicated, and I hardly think it's a felony to just include a bunch of @Configuration that you might have written anyway (because that's all it does). Feel free not to use @EnableAutoConfiguration if you prefer to include the individual configurations individually.

提交回复
热议问题