自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 1762

原创 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 1314

原创 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 410

原创 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 3281

原创 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 1401

原创 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 304

原创 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 3054

原创 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 667

原创 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 631

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除