Home > Back-end >  SpringBoot introduced shardingsphere problem
SpringBoot introduced shardingsphere problem

Time:05-11

Background: in the framework of existing introduced shardingsphere do read and write separate

Local configuration files


Framework configuration file


Error message



Feel like a local didn't give the spring. The datasource. Url assignment, cause to the analytical framework, how to settle this, ask for advice

CodePudding user response:

Disable the DataSource automatic assembly, so as not to give you register a DataSource, directly use your configuration of the two data sources

CodePudding user response:

reference 1st floor a1767028198 response:
disable DataSource automatic assembly, so as not to give you register a DataSource, directly with your configuration of the two data sources


Tried, an error is as follows, this class is a class of framework, to find the

CodePudding user response:

Framework in class can't find if start classes in the package path, not mapper package parent directory, then scanning mapper, put the package path of usermapper
  • Related