After the SpringBoot project modifies the port, database link and other information in the application.yml and application-prod.yml configuration files, the project suddenly fails to run
Problem record, after the SpringBoot project modifies the port, database link and other information in the application.yml and application-prod.yml configuration files, the project suddenly fails to run.
Error message:
16:53:14.908 [Thread-0] DEBUG org.springframework.boot.devtools.restart.classloader.RestartClassLoader - Created RestartClassLoader org.springframework.boot.devtools.restart.classloader.RestartClassLoader@69f8740a
16:53:15.159 [restartedMain] ERROR org.springframework.boot.SpringApplication - Application run failed
The solution is that when the configuration file of the springboot project is modified and saved, the project cannot be re-run directly. It is necessary to redeploy the package and re-run the maven dependency package.
Steps to open maven Click to run the following two setting files in sequence according to the figure below. Then re-run the project and it will be solved