
java
汤姆是只猫(>^ω^<)
既然选择了远方,便只顾风雨兼程,黑猫已戒鱼...
展开
-
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 · 2137 阅读 · 0 评论 -
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 · 3840 阅读 · 0 评论 -
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 · 765 阅读 · 0 评论 -
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 · 382 阅读 · 0 评论 -
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 · 3182 阅读 · 0 评论 -
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 · 1729 阅读 · 0 评论 -
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 · 767 阅读 · 0 评论 -
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 · 1531 阅读 · 0 评论 -
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 · 569 阅读 · 0 评论