Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

这是一个集成了Mybatis分页插件和通用Mapper的示例项目

NotificationsYou must be signed in to change notification settings

coder-java-caicai/Mybatis-Spring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#SSM集成的基础项目,项目使用Maven管理

#MyBatis3.3.0

#Spring[MVC]4.1.2.RELEASE

项目使用Spring4.1.2.RELEASE + SpringMVC4.1.2.RELEASE + Mybatis3.3.0

项目集成了Mybatis分页插件和通用Mapper插件

项目使用的mysql数据库,根据需要可以切换为其他数据库

集成分页插件 5.0.0 版本,注意配置变化:

<beanid="sqlSessionFactory"class="org.mybatis.spring.SqlSessionFactoryBean">    <propertyname="dataSource"ref="dataSource"/>    <propertyname="mapperLocations">        <array>            <value>classpath:mapper/*.xml</value>        </array>    </property>    <propertyname="typeAliasesPackage"value="com.isea533.mybatis.model"/>    <propertyname="plugins">        <array>            <beanclass="com.github.pagehelper.PageInterceptor"><!-- 这里的几个配置主要演示如何使用,如果不理解,一定要去掉下面的配置-->                <propertyname="properties">                    <value>                        helperDialect=mysql                        reasonable=true                        supportMethodsArguments=true                        params=count=countSql                        autoRuntimeDialect=true                    </value>                </property>            </bean>        </array>    </property></bean>
  • 拦截器com.github.pagehelper.PageInterceptor
  • 原来的dialect 变成了helperDialect,这是基于 PageHelper 方式的分页
  • 具体变化看文档

MyBatis 从入门到精通

预售地址:京东当当亚马逊

CSDN博客:http://blog.csdn.net/isea533/article/details/73555400

GitHub项目:https://github.com/mybatis-book/book

##Spring Boot集成MyBatis的基础项目

###https://github.com/abel533/MyBatis-Spring-Boot

##MyBatis工具

###http://www.mybatis.tk

##推荐使用Mybatis通用Mapper3

###https://github.com/abel533/Mapper

##推荐使用Mybatis分页插件PageHelper

###https://github.com/pagehelper/Mybatis-PageHelper

##作者信息

About

这是一个集成了Mybatis分页插件和通用Mapper的示例项目

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java97.3%
  • CSS2.7%

[8]ページ先頭

©2009-2025 Movatter.jp