Spring Cloud(微服务)common模块

Spring Cloud(微服务)common模块,第1张

Spring Cloud(微服务)common模块

①创建maven模块

②引入用到的依赖

③创建配置类(注意包路径)添加@Configuration 注解
④在其他模块引入common模块

⑤在启动类上添加@ComponentScan(basePackages = {"xs.zqy"}) 注解,路径为groupId

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/zaji/5722308.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-12-18
下一篇2022-12-18

发表评论

登录后才能评论

评论列表(0条)

    保存