Refer to this blog: https://www.cnblogs.com/dbaxyx/p/10663485.html
Error information:
Caused by: java.lang.IllegalArgumentException : Property ‘sqlSessionFactory’ or ‘sqlSessionTemplate’ are required
at org.springframework.util . Assert.notNull ( Assert.java:198 )
at org.mybatis.spring . support.SqlSessionDaoSupport.checkDaoConfig ( SqlSessionDaoSupport.java:74 )
at org.mybatis.spring . mapper.MapperFactoryBean.checkDaoConfig ( MapperFactoryBean.java:90 )
at org.springframework.dao . support.DaoSupport.afterPropertiesSet ( DaoSupport.java:44 )
at org.springframework.beans . factory.support.AbstractAutowireCapableBeanFactory .invokeInitMethods(AbstractAutowi reCapableBeanFactory.java:1837 )
at org.springframework.beans . factory.support.AbstractAutowireCapableBeanFactory .initializeBean(AbstractAutowi reCapableBeanFactory.java:1774 )
… 56 common frames omitted
This is because there is no package introduced:
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.3.2</version>
</dependency>
Just import (pay attention to jar package conflicts)
Read More:
- Error: java.lang.IllegalArgumentExcept :Property ‘sqlSessionFactory‘ or ‘sqlSessionTemplate‘ are required
- Springboot error: property ‘sqlsessionfactory’ or ‘sqlsessiontemplate’ are required error details
- java.lang.IllegalArgumentException: Address 127.0.0.1:5672:5672 seems to contain an unquoted IPv6
- java.lang.IllegalArgumentException: error at ::0 can‘t find referenced pointcut anyMethod
- Error java.lang.IllegalArgumentException: Validation failed for query for method public abstract
- java.lang.NoSuchMethodError: org.json.JSONObject.put(Java/lang/String; Java/util/Collection;) “209151;”
- java.lang.IllegalArgumentException : urlcoder exception resolution
- java.lang.IllegalArgumentException : URI is not absolute error
- java.lang.IllegalArgumentException: column ‘_id’ does not exist
- java.lang.IllegalArgumentException: Receiver not registered:
- java.lang.IllegalArgumentException : could not get next sequenced ID for sequence name: Visitor solution
- Springboot startup error [extshutdown hook]
- java.lang.IllegalArgumentException: Index for header ‘XXX‘ is 1 but CSVRecord only has 1 value
- java.lang.IllegalArgumentException : URI scheme is not “file” error resolution
- Mybatis error,There is no getter for property named ‘xx’ in ‘class java.lang.String The solution
- Springboot modifies the reference of the application.yml or. Properties file to report an error after startup
- Solve the problem of illegalargumentexception: at least one JPA metadata must be present
- Error in idea compilation: java.lang.OutOfMemoryError Java heap space and java.lang.StackOverflowError
- Springboot plus cross domain annotation @crossorigin startup error
- There is no getter for property named ‘id‘ in ‘class java.lang.Integer‘