当前位置:网站首页>Not registered via @enableconfigurationproperties, marked (@configurationproperties use)
Not registered via @enableconfigurationproperties, marked (@configurationproperties use)
2022-07-06 10:14:00 【Eric-x】
error :Not registered via @EnableConfigurationProperties, marked as Spring component, or scanned via @ConfigurationPropertiesScan
reason : When using @ConfigurationProperties when IDEA This prompt appears at the top :
Solution :
Mode one : Solve through dependency and annotation
1、 Add dependency
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
2、 adding annotations @Component, Declare to add this component to the container 
Solution two : Directly in SpringBoot Annotate the startup class

Reference resources :https://blog.csdn.net/weixin_44495678/article/details/108142287
边栏推荐
- Jar runs with error no main manifest attribute
- Competition vscode Configuration Guide
- 如何搭建接口自动化测试框架?
- CAPL 脚本打印函数 write ,writeEx ,writeLineEx ,writeToLog ,writeToLogEx ,writeDbgLevel 你真的分的清楚什么情况下用哪个吗?
- Routes and resources of AI
- AI的路线和资源
- Tianmu MVC audit II
- CAPL script printing functions write, writeex, writelineex, writetolog, writetologex, writedbglevel do you really know which one to use under what circumstances?
- 好博客好资料记录链接
- MySQL的存储引擎
猜你喜欢

Hugo blog graphical writing tool -- QT practice

MySQL Real Time Optimization Master 04 discute de ce qu'est binlog en mettant à jour le processus d'exécution des déclarations dans le moteur de stockage InnoDB.
![15 medical registration system_ [appointment registration]](/img/c1/27c7a5aae82783535e5467583bb176.png)
15 medical registration system_ [appointment registration]

软件测试工程师必备之软技能:结构化思维

MySQL实战优化高手12 Buffer Pool这个内存数据结构到底长个什么样子?

Control the operation of the test module through the panel in canoe (primary)
![[after reading the series] how to realize app automation without programming (automatically start Kwai APP)](/img/e1/bad9cfa70d3c533cfaddeee40b96f1.jpg)
[after reading the series] how to realize app automation without programming (automatically start Kwai APP)

How can I take a shortcut to learn C language in college

西南大学:胡航-关于学习行为和学习效果分析

如何搭建接口自动化测试框架?
随机推荐
Installation of pagoda and deployment of flask project
Canoe CAPL file operation directory collection
MySQL combat optimization expert 07 production experience: how to conduct 360 degree dead angle pressure test on the database in the production environment?
Mexican SQL manual injection vulnerability test (mongodb database) problem solution
好博客好资料记录链接
MySQL combat optimization expert 09 production experience: how to deploy a monitoring system for a database in a production environment?
C杂讲 浅拷贝 与 深拷贝
MySQL实战优化高手02 为了执行SQL语句,你知道MySQL用了什么样的架构设计吗?
MySQL Real Time Optimization Master 04 discute de ce qu'est binlog en mettant à jour le processus d'exécution des déclarations dans le moteur de stockage InnoDB.
Which is the better prospect for mechanical engineer or Electrical Engineer?
15 医疗挂号系统_【预约挂号】
MySQL ERROR 1040: Too many connections
MySQL combat optimization expert 03 uses a data update process to preliminarily understand the architecture design of InnoDB storage engine
MySQL combat optimization expert 05 production experience: how to plan the database machine configuration in the real production environment?
MySQL实战优化高手09 生产经验:如何为生产环境中的数据库部署监控系统?
Bugku web guide
Cooperative development in embedded -- function pointer
Solve the problem of remote connection to MySQL under Linux in Windows
Sichuan cloud education and double teacher model
16 medical registration system_ [order by appointment]