itodouble
itodouble
2018-05-04 08:00

spring mybatis 使用分页插件 使用jetty和tomcat报错

5
  • spring
  • tomcat
  • mybatis
  • 插件
  • jetty

如果使用分页插件注释为

 @Intercepts({@Signature(type=StatementHandler.class,method="prepare",args={Connection.class,,Integer.class})})

使用jetty正常 使用tomcat就报错

如果使用分页插件注释为

@Intercepts({@Signature(type=StatementHandler.class,method="prepare",args={Connection.class})})

使用jetty报错 使用tomcat就正常

依赖版本

<properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <javax-activation.version>1.1</javax-activation.version>
        <spring.version>4.0.4.RELEASE</spring.version>
        <mysql-connector-java.version>5.1.34</mysql-connector-java.version>
    </properties>


    <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>${mysql-connector-java.version}</version>
        </dependency>
        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>druid</artifactId>
            <version>1.0.9</version>
        </dependency>
        <dependency>
            <groupId>org.mybatis</groupId>
            <artifactId>mybatis</artifactId>
            <version>3.4.2</version>
        </dependency>
        <dependency>
            <groupId>org.mybatis</groupId>
            <artifactId>mybatis-spring</artifactId>
            <version>1.3.1</version>
        </dependency>


  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

3条回答

为你推荐