当前位置:网站首页>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
边栏推荐
- Control the operation of the test module through the panel in canoe (primary)
- [one click] it only takes 30s to build a blog with one click - QT graphical tool
- Canoe CAPL file operation directory collection
- MySQL combat optimization expert 12 what does the memory data structure buffer pool look like?
- 美疾控中心:美国李斯特菌疫情暴发与冰激凌产品有关
- How does the single chip microcomputer execute the main function from power on reset?
- CAPL script printing functions write, writeex, writelineex, writetolog, writetologex, writedbglevel do you really know which one to use under what circumstances?
- Preliminary introduction to C miscellaneous lecture document
- CANoe下载地址以及CAN Demo 16的下载与激活,并附录所有CANoe软件版本
- The 32-year-old fitness coach turned to a programmer and got an offer of 760000 a year. The experience of this older coder caused heated discussion
猜你喜欢

16 医疗挂号系统_【预约下单】

jar运行报错no main manifest attribute

Jar runs with error no main manifest attribute

Notes of Dr. Carolyn ROS é's social networking speech

C miscellaneous dynamic linked list operation

Download address of canoe, download and activation of can demo 16, and appendix of all canoe software versions

Preliminary introduction to C miscellaneous lecture document

Automation sequences of canoe simulation functions

C杂讲 动态链表操作 再讲

AI的路线和资源
随机推荐
MySQL实战优化高手06 生产经验:互联网公司的生产环境数据库是如何进行性能测试的?
MySQL实战优化高手10 生产经验:如何为数据库的监控系统部署可视化报表系统?
如何搭建接口自动化测试框架?
Competition vscode Configuration Guide
CAPL script printing functions write, writeex, writelineex, writetolog, writetologex, writedbglevel do you really know which one to use under what circumstances?
Teach you how to write the first MCU program hand in hand
Can I learn PLC at the age of 33
Super detailed steps to implement Wechat public number H5 Message push
15 医疗挂号系统_【预约挂号】
Tianmu MVC audit II
软件测试工程师发展规划路线
[NLP] bert4vec: a sentence vector generation tool based on pre training
The appearance is popular. Two JSON visualization tools are recommended for use with swagger. It's really fragrant
MySQL實戰優化高手04 借著更新語句在InnoDB存儲引擎中的執行流程,聊聊binlog是什麼?
Why can't TN-C use 2p circuit breaker?
华南技术栈CNN+Bilstm+Attention
PR 2021 quick start tutorial, first understanding the Premiere Pro working interface
Carolyn Rosé博士的社交互通演讲记录
NLP routes and resources
Implement context manager through with