/spring-boot-mybatis-generator-template

Springboot with mybatis and mybatis generator

Primary LanguageJavaApache License 2.0Apache-2.0

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