
springboot爬坑日记
文章平均质量分 58
记录使用springboot遇到的bug以及解决方案
刘彦青-Yannis
这个作者很懒,什么都没留下…
展开
-
Springboot踩坑日记——spring data jap 使用@Query接收Map<String,Integer>结果集时取值时报错
【代码】Springboot踩坑日记——spring data jap 使用@Query接收Map结果集时取值时报错。原创 2022-11-03 16:53:08 · 780 阅读 · 0 评论 -
springboot踩坑日记——springboot整合jpa报错
错误信息2022-04-26 08:23:43.656 ERROR 18709 --- [ main] o.s.boot.SpringApplication : Application run failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'applicationRepository' defined in com.原创 2022-04-26 09:09:01 · 3255 阅读 · 0 评论 -
springboot 踩坑日记——Could not resolve placeholder 'profile.name' in value "${profile.name}"
启动报错:Could not resolve placeholder ‘profile.name’ in value “${profile.name}”spring.profiles.active=${profile.name} 报错环境:开发工具:idea报错内容07-30 12:11:39.336 INFO [o.s.c.s.PostProcessorRegistrationDe...原创 2019-07-30 14:26:03 · 23052 阅读 · 2 评论 -
springboot踩坑日记—nacos: Error watching Nacos Service change
springboot踩坑日记—nacos: Error watching Nacos Service changeSpring Boot :: (v2.1.5.RELEASE)错误代码:07-30 10:47:37.148 ERROR [o.s.cloud.alibaba.nacos.discovery.NacosWatch] - Error watching Nacos S...原创 2019-07-30 14:22:53 · 13022 阅读 · 5 评论 -
springboot踩坑日记—— java.lang.IllegalStateException: PathVariable annotation was empty on param 0.
Feign报错:java.lang.IllegalStateException: PathVariable annotation was empty on param 0.错误日志:Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ ...原创 2019-07-26 18:52:24 · 940 阅读 · 0 评论 -
springboot踩坑日记——Field xxx.xxx.xxx required a bean of type 'xxx.xxx.xxx' that could not be found
使用feign时报创建的feign接口找不到Field xxx.xxx.xxx required a bean of type ‘xxx.xxx.xxx’ that could not be found.环境:Spring Boot : v2.1.5.RELEASESpring cloud: Greenwich.SR1openfeign: 2.1.1.RELEASEnacos disc...原创 2019-07-26 18:25:55 · 1381 阅读 · 0 评论 -
springboot踩坑日记——Error starting ApplicationContext. To display the conditions report re-run your appl
feign 报错:环境:Spring Boot : v2.1.5.RELEASESpring cloud: Greenwich.SR1openfeign: 2.1.1.RELEASEnacos discovery : 0.2.2.RELEASE错误信息:07-26 11:51:56.348 INFO [o.s.b.a.l.ConditionEvaluationRepor...原创 2019-07-26 18:23:39 · 1239 阅读 · 0 评论 -
spring boot 踩坑日记——Failed to load property source from location 'classpath:/application-dev.yml'
报错:15:22:44.872 [restartedMain] DEBUG org.springframework.boot.logging.ClasspathLoggingApplicationListener - Application failed to start with classpath: [file:/E:/Workbench/me/generator/target/clas...原创 2019-06-18 15:27:47 · 4060 阅读 · 0 评论 -
spring boot踩坑日记——idea找不到配置文件
报错:原因springboot启动时找不到配置文件可以看出配置文件图标显示不对:解决:标注配置文件原创 2019-06-14 17:27:40 · 3532 阅读 · 0 评论 -
springboot踩坑日记——使用AOP@Before注解报错:ProceedingJoinPoint is only supported for around advice
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2019-03-08 10:27:41.504 ERROR 18692 --- [ main] o.s.boot.SpringApplication ...原创 2019-03-08 10:44:09 · 12356 阅读 · 0 评论 -
Spring boot踩坑日记——ERROR c.n.d.s.t.d.RedirectingEurekaHttpClient - Request execution error
eureka启动报错:2018-12-21 17:20:16.480 [main] ERROR c.n.d.s.t.d.RedirectingEurekaHttpClient - Request execution errorcom.sun.jersey.api.client.ClientHandlerException: java.net.UnknownHostException: eu...原创 2018-12-21 17:28:21 · 37318 阅读 · 11 评论 -
spring boot踩坑日记——maven项目打的jar包只有5kb
在pom文件中加入: <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <exe原创 2018-12-14 11:27:33 · 7061 阅读 · 4 评论 -
spring boot 踩坑日记-Request processing failed; nested exception is feign.codec.DecodeException: Error w
错误信息:"Request processing failed; nested exception is feign.codec.DecodeException: Error while extracting response for type [cn.silucaihong.scheduling.common.ResultBean<java.lang.Boolean>] and ...原创 2018-11-29 11:22:32 · 23996 阅读 · 10 评论 -
spring boot 踩坑日记: Current request is not of type [org.springframework.web.multipart.MultipartHttpSer
错误信息:java.lang.IllegalStateException: Current request is not of type [org.springframework.web.multipart.MultipartHttpServletRequest]: org.apache.catalina.connector.RequestFacade@1fa4d44b错误位置:...原创 2018-10-16 16:12:24 · 21617 阅读 · 1 评论 -
spring boot 踩坑日记: 错误: 找不到或无法加载主类 xxx.xxx.xxx
错误信息:错误: 找不到或无法加载主类 io.sr.SrDhTraApplication解决:在pom.xm文件中指明启动类位置:代码: <configuration> <fork>true</fork> <maimClass>io.sr.SrDhTraApplication</maimClass...原创 2018-10-16 15:23:31 · 4855 阅读 · 0 评论 -
spring boot 踩坑日记 :This may be the result of an unspecified view, due to default view name generation
异常信息:javax.servlet.ServletException: Circular view path [index]: would dispatch back to the current handler URL [/index] again. Check your ViewResolver setup! (Hint: This may be the result of an ...原创 2018-08-22 11:25:23 · 32782 阅读 · 18 评论 -
spring boot 踩坑日记: Error resolving template "index", template might not exist or might not be accessi
访问index时报错:org.thymeleaf.exceptions.TemplateInputException: Error resolving template "index", template might not exist or might not be accessible by any of the configured Template Resolvers at o...原创 2018-08-22 11:32:44 · 34681 阅读 · 5 评论