
spring-boot
唯♧
你喜欢的东西很贵
你想去的地方很远
你为什么不努力呢?
展开
-
gateway网关启动报错 uable to start web server; nested exception is org.springframework.context.Application
gateway网关启动报错 uable to start web server; nested exception is org.springframework.context.ApplicationWebApplicationType 描述原创 2022-09-17 17:18:10 · 3339 阅读 · 1 评论 -
@postconstruct注解获取不到本身的bean
applicationContext.getBean(Class) 会报空指针异常原创 2022-09-08 12:00:31 · 1853 阅读 · 0 评论 -
【无标题】
"D:\Java use\Java\jdk1.8.0_181\bin\java.exe" -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-javaagent:D:\ruanjian\Idea\Intel.原创 2022-01-21 10:56:43 · 383 阅读 · 0 评论 -
SpringBoot整合Es报错Error creating bean with name ‘restHighLevelClient‘ defined in class path resource
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'restHighLevelClient' defined in class path resource [com/esdemo/config/ElasticSearchClientConfig.class]: Bean instantiation via factory method failed; nested exception.原创 2021-12-16 11:51:03 · 6676 阅读 · 4 评论 -
SpringBoot出错
"D:\Java use\Java\jdk1.8.0_181\bin\java.exe" -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.liveBeansView.mbeanDomain -Dspring.applicati...原创 2020-02-18 16:37:32 · 304 阅读 · 0 评论 -
SpringBoot出错
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2019-05-30 11:14:43.970 ERROR 6208 --- [ main] o.s.b.d.LoggingFailureAnalys...原创 2020-02-18 16:23:43 · 187 阅读 · 0 评论 -
SringBoot2.0X+Redies整合时
maven依赖直接加入 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> ...原创 2020-02-17 14:06:55 · 109 阅读 · 0 评论 -
**org.springframework.data.redis.repository.configuration.RedisRepositoryConfigurationExtension.regi
org.springframework.data.redis.repository.configuration.RedisRepositoryConfigurationExtension.regist原因您的问题来自Spring Boot,Spring Data Commons和Spring Data Redis之间的不兼容性....原创 2020-02-16 21:43:13 · 2479 阅读 · 1 评论 -
SpringBoot公共组件的抽取
报错信息020-02-01 22 [http-nio-8080-exec-1] ERROR org.thymeleaf.TemplateEngine - [THYMELEAF][http-nio-8080-exec-1] Exception processing template "main": An error happened during template parsing (templa...原创 2020-02-01 22:35:04 · 776 阅读 · 1 评论 -
SpringBoot日志
转载https://blog.youkuaiyun.com/liujun03/article/details/82684209原创 2020-01-31 14:15:34 · 146 阅读 · 0 评论 -
SpringBoot日志
1、日志框架比较(slf4j、log4j、logback、log4j2)Spring Boot在所有内部日志中使用Commons Logging,但是默认配置也提供了对常用日志的支持,如:Java Util Logging,Log4J, Log4J2和Logback。每种Logger都可以通过配置使用控制台或者文件输出日志内容。1.1 slf4jslf4j是对所有日志框架制定的一...转载 2020-01-31 14:14:03 · 164 阅读 · 0 评论 -
java.lang.IllegalStateException: Failed to load property source from location 'classpath:/applicatio
java.lang.IllegalStateException: Failed to load property source from location 'classpath:/application.yml' at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(Conf...原创 2020-01-30 13:14:34 · 263 阅读 · 0 评论 -
Not registered via @EnableConfigurationProperties or marked as Spring component
SpringBoot中,将类中的属性和配置文件中的配置进行绑定时出现以下的问题:当使用@ConfigurationProperties时IDEA顶部出现这样的提示:添加后错误确实是没了,但是在SpringBoot的单元测试时会看到如下的错误:Could not autowire. No beans of 'Person' type found回到自定义的bean中,添加注解@C...原创 2020-01-30 12:45:42 · 738 阅读 · 0 评论 -
IDEA建立springBoot项目出错
建立Pom文件出错Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:2.2.4.RELEASE from http://maven.aliyun.com/nexus/content/groups/public/ was cached in the local repository, resol...原创 2020-01-30 12:06:34 · 456 阅读 · 0 评论 -
SpringBoot+Mybatis项目
Maven依赖<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://...原创 2020-01-28 20:27:18 · 169 阅读 · 0 评论 -
SpringBoot连接数据库出错
2020-01-28 19:54:01.339 INFO 15988 --- [ restartedMain] com.main.Application : Starting Application on LAPTOP-6ICH6V2O with PID 15988 (D:\java\springBoot\test1\target\classes sta...原创 2020-01-28 20:20:23 · 843 阅读 · 0 评论 -
SpringBoot出错
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2020-01-28 18:54:58.153 ERROR 19420 --- [ restartedMain] o.s.boot.SpringApplication ...原创 2020-01-28 19:01:18 · 452 阅读 · 1 评论 -
SpringBoot第一次建立项目没有连接数据库时
启动的SpringBoot注解为@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})@SpringBootApplication注解为自动扫描当前包中的类以及当前包下的子包中的类@ComponentScan(basePackages = "com.*")扫描相应的SpringBoot下的包@Mapp...原创 2020-01-28 18:59:29 · 472 阅读 · 0 评论 -
Consider defining a bean of type 'com.dao.StudentDao' in your configuration.
Description:Field studentDao in com.services.StudentService required a bean of type 'com.dao.StudentDao' that could not be found.Action:Consider defining a bean of type 'com.dao.StudentDao' in...原创 2020-01-28 15:51:07 · 1196 阅读 · 1 评论 -
SpringBoot启动出错
Spring-boot项目新建出错时ror starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2020-01-28 12:25:47.982 ERROR 2856 --- [ restartedMain] o.s.b.d.Log...原创 2020-01-28 12:52:07 · 248 阅读 · 0 评论