An error was reported when launching the springboot project today
Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder
'spring.datasource.druid.initialSize' in value "${spring.datasource.druid.initialSize}"
First, confirm whether the field exists in the configuration file and whether the field name is written correctly. If it is confirmed that there is no error, check whether the configuration file is referenced. Generally, we will configure different configuration files in different environments, so we need to specify which configuration file to use in application.yml
spring:
profiles:
active: druid
During the startup process, which file is used will be output. Note that if there is no output, it means that it has no effect
if you check the above, you can try build – & gt; Rebuild project try to rebuild and I succeed.
Read More:
- Springboot error, unable to read configuration file: could not resolve placeholder ‘xxx’ in value “${XXX}
- BUG——Could not resolve placeholder ‘xxx‘ in value ‘${xxx}‘
- Spring boot prompt could not resolve placeholder in string value
- IllegalArgumentException: Could not resolve placeholder ‘‘ in value “${}“
- Failed to load bundle…Unable to resolve module `xxx` from xxx: Module `xx` does not exist
- Springboot startup error failed to configure a datasource
- raise RuntimeError(“tf.placeholder() is not compatible with “ RuntimeError: tf.placeholder() is not
- Error: unable to resolve dependency for… Could not resolve project
- Cannot resolve plugin org.springframework .boot:xxx
- Resolve nginx startup failure
- Springboot startup exception: error creating bean with name ‘permissioncontroller’
- Springboot startup error [extshutdown hook]
- Springboot project startup exception – required a single bean, but 2 were found
- Failed to resolve:com.github.xxx error
- Springboot startup error: error starting ApplicationContext
- Springboot startup error – classnotfound Exception:EnhancerBySpringCGLIB
- When error: XXX does not name a type XXX is prompted in QT
- Springboot plus cross domain annotation @crossorigin startup error
- Springboot modifies the reference of the application.yml or. Properties file to report an error after startup
- Vue project startup error: cannot find module XXX