Error reason:
process analysis: you are integrating the springboot project. For me, in maven, bulid is added to prevent resources from being loaded. You can compare whether our contents are the same. I’m a fan of madness
<build>
<resources>
<resource>
<directory>src/main/resources/</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
</build>
。
I use the application.yaml format, but the bulid above is to prevent the xx.properties and xx.xml files from being loaded. The ox’s head is not the horse’s mouth.
resolvent:
Method 1: delete directly
method 2:
, changed to:
the first one is recommended. The second one I haven’t seen, but I ran and succeeded.
Read More:
- Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded
- Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded (How to Fix)
- Failed to configure a DataSource: ‘ url’ attribute
- Failed to configure a DataSource
- Springboot startup error failed to configure a datasource
- UITableView failed to obtain a cell from its dataSource?
- Datasource bean injection failed, with startup error
- No qualifying bean of type ‘javax.sql.DataSource‘ available: expected at least 1
- Error creating bean with name ‘datasource’ defined in class path resource
- The icon on the layui page is not displayed, and an error message is reported: Failed to decode downloaded font …..
- About starting the service, you always get stuck in com. Alibaba. Druid. Pool. Druiddatasource | {datasource-1} initiated
- (20210301 solved) can’t connect to HTTPS URL because the SSL module is not available
- Refused to apply style from <URL> because its MIME type (‘text/html‘) is not a supported stylesheet
- Solution for HTML5 page embedded app not displaying normally
- Xcode Error: Embedded binary’s bundle identifier is not prefixed with the parent app’s bundle identifier
- Attributeerror: ‘STR’ object has no attribute ‘decode’ solution: the pro test is successful.
- HTTP error 404.8 – not found, the request filtering module is configured to reject the path in the URL containing the hiddensegment section
- Failed to load Main-Class manifest attribute from when the jar file is running
- When jar file is running: Failed to load Main-Class manifest attribute from ……Solution
- Attribute Error: ‘XXX‘ object has no attribute ‘module‘