Problem description:
In eclipse, the Spring-boot-Configuration-Processor dependency has been added to the SpringBoot project through the @configurationProperties (Prefix = “person”) annotation and the YML file for data binding but still does not raise the issue.
<!--Import the configuration file processor, and the configuration file will be prompted for binding.-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
Solution process:
Add the following dependencies
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
Then update project
right click – “maven-” update project
Maven install
right click – “run as -” maven install
Read More:
- [Solved] ‘build.plugins.plugin.version‘ for org.springframework.boot:spring-boot-maven-plugin is missing.
- [Solved] Spring Boot Startup Error: Failed to load property source from location ‘classpath:/application-dev.yml‘
- Spring boot real time HTML page
- [Solved] IDEA Import springboot Project Error: Cannot resolve plugin org.springframework.boot:spring-boot-maven-plugin:<unknown>
- [Solved] spring boot integrated PageHelper Error
- Spring Boot Error starting ApplicationContext. To display the auto-configuration report re-run you
- [Solved] Springboot Project Startup Error: Unable to Identify bootstrap.yml Configuration
- [Solved] Spring Boot Package Error: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0
- [Solved] Failed to bind properties under ‘spring.servlet.multipart.file-size-threshold‘ to
- Spring-boot-maven-plugin Error [How to Solve]
- [Solved] Spring Boot Error: org.springframework.jdbc.datasource.embedded.EmbeddedData
- How to Solve Spring Boot Maven Build Error
- [Solved] Spring Cloud Use Ribbon Error: No instances available for XXX
- [Solved] error running ‘xx‘ Command line is too long shorten command line for xx or also for Spring Boot defa
- [Solved] java: Internal error in the mapping processor: java.lang.NullPointerException
- [RFID] OctaneSDKJava Eclipse Error: Error occurred during initialization of boot layer
- [Solved] spring boot Startup Error: Error creating bean with name ‘requestMappingHandlerMapping‘ defined in class path
- spring cloud 2020 gateway Error 503 [How to Solve]
- o.s.boot.SpringApplication, Error creating bean with name ‘paymentImpl‘, xml Configuration file error
- Spring Cloud Hoxton.SR9 gateway and reactor-netty 0.9.0.RELEASE is Incompatible [How to Solve]