diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..667aaef --- /dev/null +++ b/.gitignore @@ -0,0 +1,33 @@ +HELP.md +target/ +.mvn/wrapper/maven-wrapper.jar +!**/src/main/**/target/ +!**/src/test/**/target/ + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ +!**/src/main/**/build/ +!**/src/test/**/build/ + +### VS Code ### +.vscode/ diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..980e7dd --- /dev/null +++ b/pom.xml @@ -0,0 +1,104 @@ + + + 4.0.0 + + day.gitlab + mybatis-flex-spring-boot4-starter + 0.0.1-SNAPSHOT + mybatis-flex-spring-boot4-starter + mybatis-flex-spring-boot4-starter + + https://mybatis-flex.com + + + Michael Yang + fuhai999@gmail.com + + developer + + +8 + + + 王帅 + suomm.macher@foxmail.com + + developer + + +8 + + + Yongchun Jiang + JSpringYC@gmail.com + + developer + + +8 + + + + https://github.com/mybatis-flex/mybatis-flex + scm:git:https://github.com/mybatis-flex/mybatis-flex.git + scm:git:https://github.com/mybatis-flex/mybatis-flex.git + + + + 25 + 4.0.0 + 4.0.0 + 7.0.2 + + + + + + org.springframework.boot + spring-boot-starter-webmvc + ${spring-boot.version} + + + org.springframework.boot + spring-boot-configuration-processor + ${spring-boot.version} + + + + org.mybatis.spring.boot + mybatis-spring-boot-starter + ${mybatis-spring.version} + + + + com.zaxxer + HikariCP + ${HikariCP.version} + + + org.postgresql + postgresql + 42.7.8 + + + + org.springframework.boot + spring-boot-starter-webmvc-test + ${spring-boot.version} + test + + + org.mybatis.spring.boot + mybatis-spring-boot-starter-test + ${mybatis-spring.version} + test + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + diff --git a/src/main/java/com/mybatisflex/spring/boot/v4/package-info.java b/src/main/java/com/mybatisflex/spring/boot/v4/package-info.java new file mode 100644 index 0000000..1cf2148 --- /dev/null +++ b/src/main/java/com/mybatisflex/spring/boot/v4/package-info.java @@ -0,0 +1,4 @@ +/** + * MyBatis-Flex Spring Boot 支持 + */ +package com.mybatisflex.spring.boot.v4; \ No newline at end of file diff --git a/src/main/java/day/gitlab/mybatisflex/MyBatisFlexApplication.java b/src/main/java/day/gitlab/mybatisflex/MyBatisFlexApplication.java new file mode 100644 index 0000000..374e460 --- /dev/null +++ b/src/main/java/day/gitlab/mybatisflex/MyBatisFlexApplication.java @@ -0,0 +1,12 @@ +package day.gitlab.mybatisflex; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class MyBatisFlexApplication { + + public static void main(String[] args) { + SpringApplication.run(MyBatisFlexApplication.class, args); + } +} diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml new file mode 100644 index 0000000..7347bb9 --- /dev/null +++ b/src/main/resources/application.yml @@ -0,0 +1,13 @@ +server: + port: 8080 + servlet: + context-path: / +spring: + application: + name: mybatis-flex-spring-boot4-starter + datasource: + type: com.zaxxer.hikari.HikariDataSource + driver-class-name: org.postgresql.Driver + url: jdbc:postgresql://110.42.60.129:10002/postgres + username: postgres + password: postgres