After tossing all afternoon, I began to think that it was the problem of using JPA warehouse. I replaced the simplest JPA repository, but it still couldn’t work. I checked online and tried the following methods:
Delete the version number;
Delete all the files in the folder (. M2) and then import the package again by Maven;
At a loss, I found that I had commented on the main startup class
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
It’s equivalent to not allowing automatic injection of data source. Of course, entitymanagerfactory can’t be found…
Hope to be able to help small partners who encounter the same difficulties!
Read More:
- Error creating bean with name ‘entitymanagerfactory’ defined in class path resource
- [Fixed]No bean named ‘sqlSessionFactoryBean’ available
- Methods of exporting configuration and importing configuration in IntelliJ idea
- Spring configuration error: org.springframework.beans . factory.BeanCreationException : Error creating bean with name ‘m
- Configuration error in mybatis configuration file
- Error creating bean with name ‘application‘: Instantiation of bean failed;
- After modifying the Tomcat configuration file in development, the modified configuration file will be automatically restored after ecplise starts Tomcat
- Error in compiling pcl1.9.1: “class vtkdatasetmapper” has no member named “immediatemode rendering off”
- Git command line configuration and configuration file to solve clone error libressl_ connect: SSL_ ERROR_ SYSCALL in connection to github. com:443
- Solve the problem of using in tensoft 2. X tf.contrib.slim No module named appears in the package: tensorflow.contrib problem
- Datasource bean injection failed, with startup error
- Error creating bean with name ‘datasource’ defined in class path resource
- Error creating bean with name ‘feignTargeter‘ defined in class path resource [org/springframework/cl
- Mybatis error,There is no getter for property named ‘xx’ in ‘class java.lang.String The solution
- Field userrepository in com.example.demo2.service.imp.UserServiceImp required a bean of type ‘com.ex
- Error creating bean with name ‘redisTemplate‘ defined in class path resource [xx/RedisConfig.class]
- No module named numpy error in Python code
- Error handling method of “no module named ‘stringio’” in Python 3
- There is no getter for property named ‘id‘ in ‘class java.lang.Integer‘