Home > Back-end >  Springcloud parent component startup error, data source
Springcloud parent component startup error, data source

Time:09-19

Service component is to write the interface and configure the data source,
Web components introduces service components (equivalent to a parent component)
Service component data source configuration was spring. The datasource. XXX, service and web components start is not an error,
Now wanted to configuration data sources, the first step is my cranky,
The problem is that
I change my service data source configuration for spring datasource. Ipv6. XXX
As shown in figure




At this time the service is no problem, but the web components it start an error,
An error content is as follows:
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded DataSource could be configured.
Reason: Failed to determine a suitable driver class
Don't say remove DataSourceAutoConfiguration, DataSourceTransactionManagerAutoConfiguration
Web components and service components are configured,
Web start class the following

Service components to start the class as follows:


Note: is to configure the data source of the service component is not an error, the correct web components