mybatis bug Highlights

When using mybatis generate a map corresponding to the database, the following information is given :

1 [ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.7:generate (default-cli) on project miaosha: Execution default-cli of goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.7:generate failed: Cannot resolve classpath entry: /Program Files/IBM/SQLLIB/java/db2java.zip -> [Help 1]
2 [ERROR] 
3 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
4 [ERROR] Re-run Maven using the -X switch to enable full debug loggin

Solution: Comment copied from official documents

1 <classPathEntry location="/Program Files/IBM/SQLLIB/java/db2java.zip" />

When the bean automatically configured in the app, IDEA wavy warning display:

1 could not autowire. No beans of ‘UserDaoMapper’ type found.
2 Inspection info: Checks autowiring problems in a bean class

IDEA is because the code will compile for us during the review , can help us find some error messages, you can also set a different error level, were highlighted at a high level when the error message, not high without prompting. Solution to modify the settings:

Preference -> Editor -> inspections -> spring - spring core -> code -> autowired for bean class。

 

Guess you like

Origin www.cnblogs.com/dogeLife/p/11441080.html
Recommended