当前位置: 移动技术网 > IT编程>开发语言>Java > mybatis入门2

mybatis入门2

2018年05月08日  | 移动技术网IT编程  | 我要评论

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创建成功

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网