当前位置:网站首页>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
边栏推荐
- Why can't TN-C use 2p circuit breaker?
- MySQL实战优化高手09 生产经验:如何为生产环境中的数据库部署监控系统?
- Simple solution to phpjm encryption problem free phpjm decryption tool
- Automation sequences of canoe simulation functions
- 宝塔的安装和flask项目部署
- Implement context manager through with
- jar运行报错no main manifest attribute
- CAPL 脚本对.ini 配置文件的高阶操作
- MySQL实战优化高手02 为了执行SQL语句,你知道MySQL用了什么样的架构设计吗?
- 15 medical registration system_ [appointment registration]
猜你喜欢
What should the redis cluster solution do? What are the plans?
[after reading the series] how to realize app automation without programming (automatically start Kwai APP)
16 医疗挂号系统_【预约下单】
Defensive C language programming in embedded development
CANoe下载地址以及CAN Demo 16的下载与激活,并附录所有CANoe软件版本
Carolyn Rosé博士的社交互通演讲记录
CAPL脚本中关于相对路径/绝对路径操作的几个傻傻分不清的内置函数
The 32 year old programmer left and was admitted by pinduoduo and foreign enterprises. After drying out his annual salary, he sighed: it's hard to choose
jar运行报错no main manifest attribute
CANoe仿真功能之自动化序列(Automation Sequences )
随机推荐
好博客好资料记录链接
MySQL实战优化高手06 生产经验:互联网公司的生产环境数据库是如何进行性能测试的?
华南技术栈CNN+Bilstm+Attention
MySQL实战优化高手10 生产经验:如何为数据库的监控系统部署可视化报表系统?
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.
Listen to my advice and learn according to this embedded curriculum content and curriculum system
How to make shell script executable
Competition vscode Configuration Guide
Mexican SQL manual injection vulnerability test (mongodb database) problem solution
CAPL脚本中关于相对路径/绝对路径操作的几个傻傻分不清的内置函数
112 pages of mathematical knowledge sorting! Machine learning - a review of fundamentals of mathematics pptx
C杂讲 双向循环链表
Can I learn PLC at the age of 33
Several silly built-in functions about relative path / absolute path operation in CAPL script
CAPL script printing functions write, writeex, writelineex, writetolog, writetologex, writedbglevel do you really know which one to use under what circumstances?
Zsh configuration file
MySQL combat optimization expert 09 production experience: how to deploy a monitoring system for a database in a production environment?
Canoe CAPL file operation directory collection
How does the single chip microcomputer execute the main function from power on reset?
Defensive C language programming in embedded development