Home > Back-end >  In the maven, bosses help resolve parsing.
In the maven, bosses help resolve parsing.

Time:05-14

The Exception encountered during the context initialization - cancelling refresh attempt: org. Springframework. Beans. Factory. UnsatisfiedDependencyException: Error creating bean with the name 'adminRoleServiceImpl: Unsatisfied dependency expressed through the field' baseMapper '; Nested exception is org. Springframework. Beans. Factory. BeanCreationException: Error creating bean with the name 'adminRoleMapper defined in the file [E: \ idea project \ maven \ maven_war_1 \ target \ classes \ project \ mapper \ adminRoleMapper class] : always resolve a reference to the bean' factory 'while setting the bean property' sqlSessionFactory '; Nested exception is org. Springframework. Beans. Factory. BeanCreationException: Error creating bean with the name 'factory' defined in the class path resource [the applicationcontext.xml] : Initialization of bean failed; Nested exception is org. Springframework. Beans. Factory. BeanCreationException: Error creating bean with the name 'dataSource' defined in the class path resource [the applicationcontext.xml] : Error setting property values. Nested exception is org. Springframework. Beans. PropertyBatchUpdateException; Nested PropertyAccessExceptions are: (1)

Think a lot of ways, what all checked, still can't find where the error, have bosses can parse analytic no,

CodePudding user response:

Initialization dependence on error, error created called "adminRoleServiceImpl" bean: through field "baseMapper" said unmet dependency, rely on you to confirm it

CodePudding user response:

No annotations on baseMapper class?

CodePudding user response:

refer to the second floor XLS, reply:
baseMapper class didn't add comments?

The @ Mapper annotation doesn't work

CodePudding user response:

reference 1/f, gu dye dust response:
initialization dependence on error, create error, called "adminRoleServiceImpl" bean: through field "baseMapper" said unmet dependency, rely on you to confirm

Use the code generator, automatically generated code, that can run in javaee add tomcat, an error in the maven

CodePudding user response:

The spring configuration file has a problem, abnormal or failed to connect to the database

CodePudding user response:

Error creating bean with the name 'dataSource' defined in the class path resource [the applicationcontext.xml] have a look at the configuration file

CodePudding user response:

You this a bit odd, mapper is arguably an XML file, why is the class of the suffix, this error is generally the name repeated or point to the name of the annotation to write wrong, you check the write repeat or write wrong

CodePudding user response:

Settled, is the problem that drives, in driverclassname com. Mysql.. JDBC driver, I write com. Mysql. Jc). The JDBC driver, thank everybody here

CodePudding user response:

Error creating bean with the name 'dataSource' defined in the class path resource [the applicationcontext.xml] : Error setting property values

Because the database configuration file didn't write well, so lead to the dao layer cannot run? Let's examine the persistence layer connection

CodePudding user response:

references 9 f Never_More666 response:
Error creating bean with the name 'dataSource' defined in the class path resource [the applicationcontext.xml] : Error setting property values

Because the database configuration file didn't write well, so lead to the dao layer cannot run? Let's examine the persistence layer connection

The fault of the persistence layer, added jc
  • Related