注解 springbootapplication 自动扫描所在包及其子包。会将有注解的加入到spring容器中 转载于:https://www.cnblogs.com/classmethond/p/10784985.html