README.md 12.7 KB
Newer Older
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
1

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
2
# MyBatis JPA Extra
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
3
   **MyBatis JPA Extra**对MyBatis进行了JPA扩展,目的在于基于JPA 2.1的注释简化对单表CUID操作,根据JPA注释动态生成SQL语句;使用Interceptor拦截需要分页的SELECT查询语句,根据不同的数据库完成分页查询,适配多种数据库;另外提供mybatis-jpa-extra-spring-boot-starter简化SpringBoot集成。
4
 
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
5
相关资源
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
6

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
7
[MyBatis网站][1]
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
8

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
9
[MyBatis GitHub源码][2]
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
10 11


MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
12
## 1、JavaBean注释简单
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
13

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
14
只支持6个注释
MaxKey单点登录官方's avatar
v2.2  
MaxKey单点登录官方 已提交
15
> * @Entity
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
16 17
> * @Table
> * @Column
MaxKey单点登录官方's avatar
v2.2  
MaxKey单点登录官方 已提交
18
> * @Id
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
19
> * @GeneratedValue
MaxKey单点登录官方's avatar
v2.2  
MaxKey单点登录官方 已提交
20 21
> * @Transient 

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
22

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
23
@GeneratedValue有3中策略 
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40

 1. **AUTO**
 
    uuid

    uuid.hex

    serial

 2. **SEQUENCE**
 
    generator值为数据库序列名

 3. **IDENTITY**
 
    generator无,根据数据库自动生成方式

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
41

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
42 43
```java
package org.apache.mybatis.jpa.test.domain;
MaxKey单点登录官方's avatar
README  
MaxKey单点登录官方 已提交
44

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
45 46
import java.io.Serializable;
import javax.persistence.Column;
MaxKey单点登录官方's avatar
v2.2  
MaxKey单点登录官方 已提交
47
import javax.persistence.Entity;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
48 49 50 51
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
MaxKey单点登录官方's avatar
README  
MaxKey单点登录官方 已提交
52 53 54 55 56 57 58 59 60 61 62 63
import org.apache.mybatis.jpa.persistence.JpaBaseDomain;

/*
   ID                   varchar(40)                    not null,
   NAME                 varchar(60)                    not null,
   STATUS               char(1)                        null,
   CREATEBY             varchar(40)                    null,
   CREATEDATE           date                           null,
   UPDATEBY             varchar(40)                    null,
   UPDATEDATE           date                           null,
   constraint PK_ROLES primary key clustered (ID)
 */
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
64 65
/**
 * @author Crystal.Sea
MaxKey单点登录官方's avatar
README  
MaxKey单点登录官方 已提交
66
 *
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
67
 */
MaxKey单点登录官方's avatar
v2.2  
MaxKey单点登录官方 已提交
68
@Entity
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
69
@Table(name = "STUDENTS")  
MaxKey单点登录官方's avatar
README  
MaxKey单点登录官方 已提交
70 71 72 73 74 75
public class Students extends JpaBaseDomain implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -6928570405840778151L;
	
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
76 77 78 79
	@Id
	@Column
	@GeneratedValue(strategy=GenerationType.AUTO,generator="serial")
	//@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="SEQ_MYBATIS_STUD")
MaxKey单点登录官方's avatar
README  
MaxKey单点登录官方 已提交
80
	//@GeneratedValue(strategy=GenerationType.IDENTITY,generator="SEQ_MYBATIS_STUD")
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
81 82 83 84 85 86 87 88 89 90 91 92 93 94
	private String id;
	@Column
	private String stdNo;
	@Column
	private String stdName;
	@Column
	private String stdGender;
	@Column
	private int stdAge;
	@Column
	private String stdMajor;
	@Column
	private String stdClass;
	
MaxKey单点登录官方's avatar
README  
MaxKey单点登录官方 已提交
95 96 97 98
	public Students() {
		super();
	}

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156
	public String getStdNo() {
		return stdNo;
	}

	public void setStdNo(String stdNo) {
		this.stdNo = stdNo;
	}

	public String getStdName() {
		return stdName;
	}

	public void setStdName(String stdName) {
		this.stdName = stdName;
	}

	public String getStdGender() {
		return stdGender;
	}

	public void setStdGender(String stdGender) {
		this.stdGender = stdGender;
	}

	public int getStdAge() {
		return stdAge;
	}

	public void setStdAge(int stdAge) {
		this.stdAge = stdAge;
	}

	public String getStdMajor() {
		return stdMajor;
	}

	public void setStdMajor(String stdMajor) {
		this.stdMajor = stdMajor;
	}

	public String getStdClass() {
		return stdClass;
	}

	public void setStdClass(String stdClass) {
		this.stdClass = stdClass;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Override
	public String toString() {
MaxKey单点登录官方's avatar
README  
MaxKey单点登录官方 已提交
157 158
		return "Students [stdNo=" + stdNo + ", stdName=" + stdName + ", stdgender=" + stdGender + ", stdAge=" + stdAge
				+ ", stdMajor=" + stdMajor + ", stdClass=" + stdClass + "]";
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
159 160 161 162 163
	}
}

```

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
164
## 2、单表新增、修改、删除、查询
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186

```java
package org.apache.mybatis.jpa.test;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.apache.mybatis.jpa.test.dao.service.StudentsService;
import org.apache.mybatis.jpa.test.domain.Students;
import org.apache.mybatis.jpa.util.WebContext;
import org.junit.Before;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MyBatisTestRunner {
	private static final Logger _logger = LoggerFactory.getLogger(MyBatisTestRunner.class);
	
	public static ApplicationContext context;
MaxKey单点登录官方's avatar
rm  
MaxKey单点登录官方 已提交
187
	public static StudentsService service;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
188 189 190 191 192 193 194 195 196 197 198
	
	@Test
	public void insert() throws Exception{
		_logger.info("insert...");
		Students student=new Students();
		student.setStdNo("10024");
		student.setStdGender("M");
		student.setStdName("司马昭");
		student.setStdAge(20);
		student.setStdMajor("政治");
		student.setStdClass("4");
MaxKey单点登录官方's avatar
rm  
MaxKey单点登录官方 已提交
199
		service.insert(student);
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
200
		Thread.sleep(1000);
MaxKey单点登录官方's avatar
rm  
MaxKey单点登录官方 已提交
201
		service.remove(student.getId());
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
202 203 204 205 206
	}
	
	@Test
	public void get() throws Exception{
		_logger.info("get...");
MaxKey单点登录官方's avatar
rm  
MaxKey单点登录官方 已提交
207
		Students student=service.get("921d3377-937a-4578-b1e2-92fb23b5e512");
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
208 209 210 211 212 213 214 215 216
		 _logger.info("Students "+student);

	}
	
	@Test
	public void remove() throws Exception{
		_logger.info("remove...");
		Students student=new Students();
		student.setId("921d3377-937a-4578-b1e2-92fb23b5e512");
MaxKey单点登录官方's avatar
rm  
MaxKey单点登录官方 已提交
217
		service.remove(student.getId());
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
218 219 220 221 222 223 224 225 226 227 228
		
	}
	
	@Test
	public void batchDelete() throws Exception{
		_logger.info("batchDelete...");
		List<String> idList=new ArrayList<String>();
		idList.add("8584804d-b5ac-45d2-9f91-4dd8e7a090a7");
		idList.add("ab7422e9-a91a-4840-9e59-9d911257c918");
		idList.add("12b6ceb8-573b-4f01-ad85-cfb24cfa007c");
		idList.add("dafd5ba4-d2e3-4656-bd42-178841e610fe");
MaxKey单点登录官方's avatar
rm  
MaxKey单点登录官方 已提交
229
		service.batchDelete(idList);
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
230 231 232 233 234
	}

	@Test
	public void findAll() throws Exception{
		_logger.info("findAll...");
MaxKey单点登录官方's avatar
rm  
MaxKey单点登录官方 已提交
235
		_logger.info("findAll "+service.findAll());
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261
	}
	
	@Before
	public void initSpringContext(){
		if(context!=null) return;
		_logger.info("init Spring Context...");
		SimpleDateFormat sdf_ymdhms =new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		String startTime=sdf_ymdhms.format(new Date());

		try{
			MyBatisTestRunner runner=new MyBatisTestRunner();
			runner.init();
			
		}catch(Exception e){
			e.printStackTrace();
		}
		
		_logger.info("-- --Init Start at " + startTime+" , End at  "+sdf_ymdhms.format(new Date()));
	}
	
	//Initialization ApplicationContext for Project
	public void init(){
		_logger.info("init ...");
		
		context = new ClassPathXmlApplicationContext(new String[] {"spring/applicationContext.xml"});
		
MaxKey单点登录官方's avatar
rm  
MaxKey单点登录官方 已提交
262 263
		WebContext.applicationContext=context;
		service =(StudentsService)WebContext.getBean("studentsService");
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
264 265 266 267 268
	}
	
}
```

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
269
## 3、支持分页查询
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
270

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
271 272 273 274 275 276 277 278 279 280
```java
package org.apache.mybatis.jpa.test;

import java.util.ArrayList;
import java.util.List;
import org.apache.mybatis.jpa.test.dao.service.StudentsService;
import org.apache.mybatis.jpa.test.domain.Students;
import org.apache.mybatis.jpa.util.WebContext;
import org.junit.Before;
import org.junit.Test;
MaxKey单点登录官方's avatar
v2.2  
MaxKey单点登录官方 已提交
281
import org.junit.runner.RunWith;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
282 283
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
MaxKey单点登录官方's avatar
v2.2  
MaxKey单点登录官方 已提交
284 285
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
286
import org.springframework.context.ApplicationContext;
MaxKey单点登录官方's avatar
v2.2  
MaxKey单点登录官方 已提交
287
import org.springframework.test.context.junit4.SpringRunner;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
288

MaxKey单点登录官方's avatar
v2.2  
MaxKey单点登录官方 已提交
289 290 291 292 293 294 295 296 297 298
@RunWith(SpringRunner.class)
@SpringBootTest(classes = MybatisJpaApplication.class)
public class MybatisJpaApplicationTest{ 
    private static final Logger _logger = LoggerFactory.getLogger(MybatisJpaApplicationTest.class);
    
    @Autowired
    StudentsService studentsService;
    
    @Autowired
    org.apache.ibatis.session.SqlSessionFactory SqlSessionFactory;
MaxKey单点登录官方's avatar
README  
MaxKey单点登录官方 已提交
299

MaxKey单点登录官方's avatar
v2.2  
MaxKey单点登录官方 已提交
300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325
    @Autowired
    private ApplicationContext applicationContext;
 
    @Before
    public  void before() {
    	_logger.info("---------------- before");
    	WebContext.applicationContext=applicationContext;

    }
    
    @Test
	public void insert() throws Exception{
		_logger.info("insert...");
		Students student=new Students();
		student.setStdNo("10024");
		student.setStdGender("M");
		student.setStdName("司马昭");
		student.setStdAge(20);
		student.setStdMajor("政治");
		student.setStdClass("4");
		studentsService.insert(student);
		
		Thread.sleep(1000);
		studentsService.remove(student.getId());
		
	}
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
326
	
MaxKey单点登录官方's avatar
v2.2  
MaxKey单点登录官方 已提交
327 328 329 330 331 332 333 334 335
	@Test
	public void get() throws Exception{
		_logger.info("get...");
		Students student=studentsService.get("921d3377-937a-4578-b1e2-92fb23b5e512");
		
		System.out.println("Students "+student);
		 _logger.info("Students "+student);

	}
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
336
	
MaxKey单点登录官方's avatar
v2.2  
MaxKey单点登录官方 已提交
337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356
	@Test
	public void remove() throws Exception{
		
		_logger.info("remove...");
		Students student=new Students();
		student.setId("921d3377-937a-4578-b1e2-92fb23b5e512");
		studentsService.remove(student.getId());
		
	}
	
	@Test
	public void batchDelete() throws Exception{
		_logger.info("batchDelete...");
		List<String> idList=new ArrayList<String>();
		idList.add("8584804d-b5ac-45d2-9f91-4dd8e7a090a7");
		idList.add("ab7422e9-a91a-4840-9e59-9d911257c918");
		idList.add("12b6ceb8-573b-4f01-ad85-cfb24cfa007c");
		idList.add("dafd5ba4-d2e3-4656-bd42-178841e610fe");
		studentsService.batchDelete(idList);
	}
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
357 358 359

	@Test
	public void queryPageResults() throws Exception{
MaxKey单点登录官方's avatar
v2.2  
MaxKey单点登录官方 已提交
360
		
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
361 362 363 364 365
		_logger.info("queryPageResults...");
		 Students student=new Students();
		 //student.setId("af04d610-6092-481e-9558-30bd63ef783c");
		 student.setStdGender("M");
		 //student.setStdMajor(政治");
MaxKey单点登录官方's avatar
v2.2  
MaxKey单点登录官方 已提交
366 367 368 369 370 371 372
		 student.setPageSize(10);
		 student.setPageNumber(2);
		 List<Students> allListStudents = 
				 studentsService.queryPageResults(student).getRows();
		 for (Students s : allListStudents) {
			 _logger.info("Students "+s);
		 }
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
373 374 375 376
	}
	
	@Test
	public void queryPageResultsByMapperId() throws Exception{
MaxKey单点登录官方's avatar
v2.2  
MaxKey单点登录官方 已提交
377

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
378 379 380 381
		_logger.info("queryPageResults by mapperId...");
		 Students student=new Students();
		 student.setStdGender("M");
		 //student.setStdMajor(政治");
MaxKey单点登录官方's avatar
v2.2  
MaxKey单点登录官方 已提交
382 383
		 student.setPageSize(10);
		 student.setPageNumber(2);
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
384
		 
MaxKey单点登录官方's avatar
v2.2  
MaxKey单点登录官方 已提交
385 386 387 388 389
		 List<Students> allListStudents = 
				 studentsService.queryPageResults("queryPageResults1",student).getRows();
		 for (Students s : allListStudents) {
			 _logger.info("Students "+s);
		 }
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
390
	}
MaxKey单点登录官方's avatar
v2.2  
MaxKey单点登录官方 已提交
391 392 393 394 395 396 397 398 399 400 401 402
	
	
	 @Test
	 public void findAll() {
			_logger.info("---------------- ALL");
			
			List<Students> allListStudents=studentsService.findAll();
			 for (Students s : allListStudents) {
				 _logger.info("Students "+s);
			 }
	 }
}
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
403

MaxKey单点登录官方's avatar
v2.2  
MaxKey单点登录官方 已提交
404
package org.apache.mybatis.jpa.test;
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
405

MaxKey单点登录官方's avatar
v2.2  
MaxKey单点登录官方 已提交
406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430
import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceBuilder;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

@Configuration
public class MybatisJpaConfig {
    private int port;

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    @Bean
	@Primary
	@ConfigurationProperties("spring.datasource")
	public DataSource dataSource() {
		return DruidDataSourceBuilder.create().build();
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
431 432 433 434
	}
}
```

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
435 436

## 4、映射文件配置
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
437

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481
```xml
<mapper namespace="org.apache.mybatis.jpa.test.dao.persistence.StudentsMapper" >
	<sql id="sql_condition">
		WHERE	1	=	1
    	<if test="id != null">
			AND	ID	=	'${id}'
		</if>
		<if test="stdName != null  and stdName != '' ">
			AND STDNAME like '%${stdName}%'
		</if>
		<if test="stdGender != null  and stdGender != '' ">
			AND	STDGENDER	=	#{stdGender}
		</if>
		<if test="stdMajor != null">
			<![CDATA[AND	STDMAJOR	= #{stdMajor}]]>
		</if>
	</sql>
	
    <select id="queryPageResults" parameterType="Students" resultType="Students">
    	SELECT 
    		ID		   ,
			STDNO      ,
			STDNAME    ,
			STDGENDER  ,
			STDAGE     ,
			STDMAJOR   ,
			STDCLASS 
    	FROM STUDENTS 
    	<include refid="sql_condition"/>
    </select>
 
     <select id="queryPageResults1" parameterType="Students" resultType="Students">
    	SELECT 
    		ID		   ,
			STDNO      ,
			STDNAME    ,
			STDGENDER  ,
			STDAGE     ,
			STDMAJOR   ,
			STDCLASS 
    	FROM STUDENTS 
    	<include refid="sql_condition"/>
    </select>
       
MaxKey单点登录官方's avatar
rm  
MaxKey单点登录官方 已提交
482
     <select id="queryBy" parameterType="Students" resultType="Students">
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501
    	SELECT 
    		ID		   ,
			STDNO      ,
			STDNAME    ,
			STDGENDER  ,
			STDAGE     ,
			STDMAJOR   ,
			STDCLASS 
    	FROM ROLES 
    	<include refid="sql_condition"/>
    </select>
  
    <delete id="delete" parameterType="Students" >
    	DELETE FROM STUDENTS WHERE ID=#{id}
    </delete>
    
```


MaxKey单点登录官方's avatar
v2.2  
MaxKey单点登录官方 已提交
502
##  5、SpringBoot配置
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
503

MaxKey单点登录官方's avatar
v2.2  
MaxKey单点登录官方 已提交
504 505 506 507 508 509 510 511 512 513 514 515 516 517
```ini
 spring.main.web-application-type=NONE
#
spring.datasource.username=root
spring.datasource.password=maxkey
spring.datasource.url=jdbc:mysql://localhost/test?autoReconnect=true&characterEncoding=UTF-8&serverTimezone=UTC
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource


mybatis.type-aliases-package=org.apache.mybatis.jpa.test.domain
mybatis.mapper-locations=classpath*:/org/apache/mybatis/jpa/test/dao/persistence/xml/mysql/*.xml
mybatis.table-column-escape=true
#mybatis.table-column-escape-char=`
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
518
```
MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
519

MaxKey单点登录官方's avatar
MaxKey单点登录官方 已提交
520 521 522

  [1]: http://www.mybatis.org/mybatis-3/
  [2]: https://github.com/mybatis/mybatis-3/