随笔分类 - Spring Boot
摘要:注解时,包含引入的模块 @EnableFeignClients(basePackages = {"com.xxx.service.user.feign","com.xxx.cache.client.service"}) @ComponentScan(basePackages = {"com.xxx.
阅读全文
摘要:解决 Application 添加(exclude= {DataSourceAutoConfiguration.class})注解 启动时暂不初始化数据库信息 @SpringBootApplication(exclude= {DataSourceAutoConfiguration.class}) p
阅读全文
摘要:总结 @Autowired:先byType再byName @Resource:先byName再byType(当指定@Resource name属性时,只会byName) @Autowired是spring的注解 @Resource是Java提供的注解 说明 @Autowired的注入逻辑如下 找到所
阅读全文
摘要:前提 serviceA 调用 serviceB 配置 <-- 父工程引入--> <dependencyManagement> <dependencies> <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-clo
阅读全文
摘要:官网下载 & 上传 & 解压 $ 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
阅读全文
摘要:在本项目和父工程项目共同引入了jar 在子项目中排除父工程的引入,同时到本地maven仓库,将已经下载的jar删掉,重新部署 <dependency> <groupId>xxx.xxx</groupId> <artifactId>tool-common</artifactId> <version>x
阅读全文
摘要:错误日志 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:
阅读全文