Springboot with mybatis and mybatis generator https://start.spring.io/
- Spring boot web, json support
- Spring boot mybatis
- Mybatis generator plugins
- JSON converter and property configurable
- add ant build for shell script and install zip
<!-- set scope provided-->
<!-- package war -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
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
git clone -b template-quick https://github.com/daileyet/spring-boot-mybatis-generator-template.git