mybatis入门2

1、Idea 如何新建XML文件

通过右键→file,通过写全后缀名添加创建

2、Mybatis配置工作原理

 

3、在做一个mybatis的demo的时候出现错误

WARNING: An illegal reflective access operation has occurred

WARNING: Illegal reflective access by org.apache.ibatis.reflection.Reflector (file:/D:/application/resp/org/mybatis/mybatis/3.4.6/mybatis-3.4.6.jar) to method java.lang.Class.checkPackageAccess(java.lang.SecurityManager,java.lang.ClassLoader,boolean)

WARNING: Please consider reporting this to the maintainers of org.apache.ibatis.reflection.Reflector

WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations

WARNING: All illegal access operations will be denied in a future release

原因:JDK版本为8以上会出现警告,不影响使用

小tips

Ctrl+Alt+V 可以引入变量。例如把括号内的SQL赋成一个变量

快速添加行和列

Table>tr[*n]>th[*n] 然后输入tab创建成功

猜你喜欢

转载自www.cnblogs.com/thyHome/p/9006125.html
今日推荐