2021/7/9
Error 1: there is no @EnumValue annotation when writing enumeration class
Solution 1: @EnumValueis an annotation supported after mybatis-plus version 3.0
Error 2:
java.lang.annotation.AnnotationFormatError: Invalid default: public abstract java.lang.Class org.mybatis.spring.annotation.MapperScan.factoryBean()
Solution 2:
Modify the dependency from
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus</artifactId>
<version>3.3.2</version>
</dependency>
to
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.0.5</version>
</dependency>
Error 3:
java.lang.IllegalStateException: Failed to load ApplicationContext
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘***’: Unsatisfied dependency
Solution 3:
Delete the dependency of mybaits
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.1.1</version>
</dependency>
Error 4:
The list() method reports red, indicating that the parameter is missing,
Solution 4:
View source code
Method does require parameters
View official documents
It may be due to the version problem. In the latest version, you do not need to pass the parameter. The parameter should be null
Problem-solving
Error 5:
java.lang.IllegalArgumentException: No enum constant com.book.bookshop.entity.enums.Suit.1
Solution 5:
Removing spring-boot-devtools, this plug-in will cause many problems. It is estimated that it should be the main reason
Read More:
- [Solved] Mybatis.generator error: Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2
- [Solved] Tk-Mybatis Error: tk.mybatis.mapper.MapperException:
- [Solved] Mybatis Error: Could not find resource mybatis-conf.xml
- [Solved] mybatis plus Insert Error: mybatis plus Error setting null for parameter #1 with JdbcType OTHER
- Android solution Java.util.concurrent.ExecutionException: com.Android.ide.common.process.ProcessException: exception
- JUnit tests mybatis-plus error: null pointer [How to Solve]
- Mybatisenumtypehandler upgrade error of mybatis plus
- How to Solve SQL comments error in the mybatis query
- Mybatis single parameter pass in exception (How to Fix)
- serviceimpl inherits generic public impl startup error: ClassCastException (Mybatis-plus version Issue)
- [Solved] JavaErrors_mybatis collection column Pass Value Error
- [Solved] Mybatis add dependencies Error: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration.
- Ruoyi-cloud Integrated mybatis-plus Error: Unknown column ‘search_value‘ in ‘field list‘
- Mybatis plus configuration console prints complete SQL statement with parameters
- mybatis Error: All elements are null [How to Solve]
- [Solved] Mybatis-Plus Error: Invalid bound statement (not found)
- Mybatis Error: All elements are null [How to Solve]
- Build a mybatis and it will appear session.selectOne Method error
- [Solved] Mybatis Error: attempting to get column ‘XX’ from result set
- How to Solve Mybatis error: invalid bound statement (not found)