daileyet / spring-boot-mybatis-generator-template

Springboot with mybatis and mybatis generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spring-boot-mybatis-generator-template

Springboot with mybatis and mybatis generator https://start.spring.io/

Features

  1. Spring boot web, json support
  2. Spring boot mybatis
  3. Mybatis generator plugins
  4. JSON converter and property configurable
  5. add ant build for shell script and install zip

Convert jar to war

pom.xml

	<!-- set scope provided-->
	<!-- package war -->
	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-tomcat</artifactId>
		<scope>provided</scope>
	</dependency>

SpringBootServletInitializer

public class SpringBootMybatisGeneratorTemplateApplication extends SpringBootServletInitializer{

	public static void main(String[] args) {
		SpringApplication.run(SpringBootMybatisGeneratorTemplateApplication.class, args);
	}
	
	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(SpringBootMybatisGeneratorTemplateApplication.class);
	}
}
# compile and install
mvn clean install -Dpackaging.style=war

Template projects

Quick template projects

git clone -b  template-quick https://github.com/daileyet/spring-boot-mybatis-generator-template.git

About

Springboot with mybatis and mybatis generator

License:Apache License 2.0


Languages

Language:Java 89.1%Language:HTML 5.2%Language:TSQL 2.1%Language:CSS 1.6%Language:Shell 1.6%Language:Batchfile 0.3%