Project initial

This commit is contained in:
2025-12-07 11:19:06 +08:00
parent bc43112400
commit b7b31d9f86
5 changed files with 166 additions and 0 deletions

33
.gitignore vendored Normal file
View File

@ -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/

104
pom.xml Normal file
View File

@ -0,0 +1,104 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>day.gitlab</groupId>
<artifactId>mybatis-flex-spring-boot4-starter</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>mybatis-flex-spring-boot4-starter</name>
<description>mybatis-flex-spring-boot4-starter</description>
<url>https://mybatis-flex.com</url>
<developers>
<developer>
<name>Michael Yang</name>
<email>fuhai999@gmail.com</email>
<roles>
<role>developer</role>
</roles>
<timezone>+8</timezone>
</developer>
<developer>
<name>王帅</name>
<email>suomm.macher@foxmail.com</email>
<roles>
<role>developer</role>
</roles>
<timezone>+8</timezone>
</developer>
<developer>
<name>Yongchun Jiang</name>
<email>JSpringYC@gmail.com</email>
<roles>
<role>developer</role>
</roles>
<timezone>+8</timezone>
</developer>
</developers>
<scm>
<url>https://github.com/mybatis-flex/mybatis-flex</url>
<connection>scm:git:https://github.com/mybatis-flex/mybatis-flex.git</connection>
<developerConnection>scm:git:https://github.com/mybatis-flex/mybatis-flex.git</developerConnection>
</scm>
<properties>
<java.version>25</java.version>
<spring-boot.version>4.0.0</spring-boot.version>
<mybatis-spring.version>4.0.0</mybatis-spring.version>
<HikariCP.version>7.0.2</HikariCP.version>
</properties>
<dependencies>
<!-- Spring Boot -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webmvc</artifactId>
<version>${spring-boot.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<version>${spring-boot.version}</version>
</dependency>
<!-- MyBatis -->
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>${mybatis-spring.version}</version>
</dependency>
<!-- JDBC Drivers -->
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
<version>${HikariCP.version}</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.7.8</version>
</dependency>
<!-- Testing -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webmvc-test</artifactId>
<version>${spring-boot.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter-test</artifactId>
<version>${mybatis-spring.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,4 @@
/**
* MyBatis-Flex Spring Boot 支持
*/
package com.mybatisflex.spring.boot.v4;

View File

@ -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);
}
}

View File

@ -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