随笔分类 -  Spring Boot

摘要:注解时,包含引入的模块 @EnableFeignClients(basePackages = {"com.xxx.service.user.feign","com.xxx.cache.client.service"}) @ComponentScan(basePackages = {"com.xxx. 阅读全文
posted @ 2022-01-11 11:34 ysloong 阅读(688) 评论(0) 推荐(0) 编辑
摘要:解决 Application 添加(exclude= {DataSourceAutoConfiguration.class})注解 启动时暂不初始化数据库信息 @SpringBootApplication(exclude= {DataSourceAutoConfiguration.class}) p 阅读全文
posted @ 2021-11-19 09:17 ysloong 阅读(905) 评论(0) 推荐(0) 编辑
摘要:总结 @Autowired:先byType再byName @Resource:先byName再byType(当指定@Resource name属性时,只会byName) @Autowired是spring的注解 @Resource是Java提供的注解 说明 @Autowired的注入逻辑如下 找到所 阅读全文
posted @ 2021-11-17 07:51 ysloong 阅读(43) 评论(0) 推荐(0) 编辑
摘要:前提 serviceA 调用 serviceB 配置 <-- 父工程引入--> <dependencyManagement> <dependencies> <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-clo 阅读全文
posted @ 2021-11-14 12:23 ysloong 阅读(392) 评论(0) 推荐(0) 编辑
摘要:官网下载 & 上传 & 解压 $ scp -P 22 nacos-server-2.0.3.tar.gz root@xxx.xxx.xxx.xx:/opt/ $ tar -xvf nacos-server-2.0.3.tar.gz Jdk配置(Jdk版本位11) ## vim startup.sh 阅读全文
posted @ 2021-11-14 12:05 ysloong 阅读(627) 评论(0) 推荐(0) 编辑
摘要:在本项目和父工程项目共同引入了jar 在子项目中排除父工程的引入,同时到本地maven仓库,将已经下载的jar删掉,重新部署 <dependency> <groupId>xxx.xxx</groupId> <artifactId>tool-common</artifactId> <version>x 阅读全文
posted @ 2021-10-22 17:49 ysloong 阅读(309) 评论(0) 推荐(0) 编辑
摘要:错误日志 2021-01-22 17:54:51.568 [,] INFO [main] o.s.b.c.e.t.TomcatEmbeddedServletContainer-201 : Tomcat started on port(s): 8503 (http) 2021-01-22 17:54: 阅读全文
posted @ 2021-01-22 18:14 ysloong 阅读(2278) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示