mybatis mapper报错:Class not found: org.jboss.vfs.VFS

报错部分:

Logging initialized using 'class org.apache.ibatis.logging.stdout.StdOutImpl' adapter.
Class not found: org.jboss.vfs.VFS
JBoss 6 VFS API is not available in this environment.
Class not found: org.jboss.vfs.VirtualFile
VFS implementation org.apache.ibatis.io.JBoss6VFS is not valid in this environment.
Using VFS adapter org.apache.ibatis.io.DefaultVFS
Find JAR URL: file:/C:/Fancy/JavaProjects/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/myapp/WEB-INF/classes/com/app/mapper/
Not a JAR: file:/C:/Fancy/JavaProjects/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/myapp/WEB-INF/classes/com/app/mapper/
Reader entry: GroupMapper.class
Reader entry: GroupMapper.xml
Reader entry: PunchMapper.class
Reader entry: PunchMapper.xml
Reader entry: StaffMapper.class
Reader entry: StaffMapper.xml
Listing file:/C:/Fancy/JavaProjects/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/myapp/WEB-INF/classes/com/app/mapper/
Find JAR URL: file:/C:/Fancy/JavaProjects/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/myapp/WEB-INF/classes/com/app/mapper/GroupMapper.class
Not a JAR: file:/C:/Fancy/JavaProjects/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/myapp/WEB-INF/classes/com/app/mapper/GroupMapper.class
Reader entry: ����

修改方向:

  1. 检查mapper中SQL语句以及id是否有重复或者有误;
  2. 在pom.xml中添加jboss的依赖;
     <dependency>
      <groupId>org.jboss</groupId>
      <artifactId>jboss-vfs</artifactId>
      <version>3.2.15.Final</version>
    </dependency>
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值