- 博客(9)
- 收藏
- 关注
原创 org.springframework.web.client.HttpClientErrorException$NotFound: 404 null,注解@ComponentScan问题
1.postman请求controller,报404如图:原因:在启动类注入@ComponentScan(basePackages = {"com.cc.server"})解决方法:改成@ComponentScan(basePackages = {"com.cc.server","com.* "})如果配置@ComponentScan这个注解,则@SpringBootApplication中的@ComponentScan失效,如果要让被@Component注解的包能被扫
2022-05-26 18:45:19
2131
原创 java.lang.IllegalArgumentException: Not enough variable values available to expand ‘XXX‘
java.lang.IllegalArgumentException: Not enough variable values available to expand ‘XXX’解决办法:
2022-05-26 18:03:31
1523
原创 A component required a bean of type ‘com.xxx.mapper.GoodsInfoMapper‘ that could not be found
APPLICATION FAILED TO STARTDescription:A component required a bean of type ‘com.xxx.mapper.GoodsInfoMapper’ that could not be found.Action:Consider defining a bean of type ‘com.citic.mapper.GoodsInfoMapper’ in your configuration.Disconnected from th.
2022-05-26 17:52:07
557
原创 rocketMQ启动报错,JavaHotSpot(TM) 64-Bit Server VM warning错误: 找不到或无法加载主类 Files\jdk1.8.0_161\\jre\lib\ext
Java HotSpot(TM) 64-Bit Server VM warning: Using the DefNew young collector with the CMS collector is deprecated and will likely be removed in a future releaseJava HotSpot(TM) 64-Bit Server VM warning: UseCMSCompactAtFullCollection is deprecated and will
2022-05-24 16:58:38
3828
原创 springcloud项目读取不到application.properties
springcloud项目读取不到application.properties原因:1.application.properties格式不正确2.服务启动Edit Configurations–>jre 设置成系统配置的jdk版本 例:jdk1.83.pom.xml中不能设置成pom4.pom.xml中添加指定文件的位置,防止application.properties被过滤,如下:
2022-05-19 11:32:25
1712
原创 spring-boot-maven-plugin:2.0.8.RELEASE:repackage failed: Unable to find main class
Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.8.RELEASE:repackage (repackage) on project milkCoffer: Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.0.8.RELEASE:repackage failed: Unable to find
2022-05-15 16:35:14
378
原创 Description : The <project> element is the root of the descriptor
idea搭建框架时pom报错:Description : The element is the root of the descriptor多种原因:1.项目idea的JDK设置不正确2.创建项目时默认使用idea的maven了解决方法:1.修改idea的JDK版本为系统安装的JDK 。 例:JDK1.82.修改maven为非idea自带的maven。...
2022-05-15 16:13:37
3176
原创 Excel文件导出list对象
Excel文件导出excel导出xls、csv格式的list对象1.Excel文件工具类public class ExcelUtils { private static String sheetName = "清结算"; public static void write(HttpServletResponse response, HttpServletRequest request, List<TransctionInf
2021-04-05 15:49:40
760
原创 Springboot+Selenium+TestNg登录功能
Springboot+Selenium登录功能一、Springboot+Selenium+testNg框架搭建1.配置依赖org.springframework.bootspring-boot-starterspring-contextorg.springframeworkorg.springframework.bootspring-boot-starter-testtestorg.projectlomboklomboktrueorg.springframe
2021-04-05 14:53:54
763
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人