2018年12月21日

Spring boot 梳理 - 代码结构(Main类的位置)

摘要: Spring boot 对代码结构无特殊要求,但有个套最佳实践的推荐 不要使用没有包名的类。没有包名时,@ComponentScan, @EntityScan, or @SpringBootApplication 可能会有问题。 Main类在包路径中的位置:强烈建议main类放在包的根路径上。We generally recommend that you locate your main app... 阅读全文

posted @ 2018-12-21 22:34 手握太阳 阅读(1702) 评论(0) 推荐(0) 编辑

导航