build: mybatis plus
This commit is contained in:
parent
d4e26317bd
commit
3538fc5cc5
|
@ -400,7 +400,7 @@
|
||||||
<appender-ref ref="errorAsyncAppender"/>
|
<appender-ref ref="errorAsyncAppender"/>
|
||||||
</logger>
|
</logger>
|
||||||
|
|
||||||
<logger name="io.metersphere.base.mapper" level="${logger.sql.level}">
|
<logger name="io.metersphere.sdk.mapper" level="${logger.sql.level}">
|
||||||
<appender-ref ref="console"/>
|
<appender-ref ref="console"/>
|
||||||
</logger>
|
</logger>
|
||||||
|
|
||||||
|
|
|
@ -12,4 +12,13 @@
|
||||||
<name>domain</name>
|
<name>domain</name>
|
||||||
<description>domain</description>
|
<description>domain</description>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.baomidou</groupId>
|
||||||
|
<artifactId>mybatis-plus-boot-starter</artifactId>
|
||||||
|
<version>${mybatis-plus-starter.version}</version>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
package io.metersphere.domain;
|
package io.metersphere.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@TableName(value = "user", autoResultMap = true)
|
||||||
public class User implements Serializable {
|
public class User implements Serializable {
|
||||||
private String id;
|
private String id;
|
||||||
|
|
||||||
|
|
|
@ -114,6 +114,11 @@
|
||||||
<artifactId>mybatis-spring-boot-starter</artifactId>
|
<artifactId>mybatis-spring-boot-starter</artifactId>
|
||||||
<version>${mybatis-starter.version}</version>
|
<version>${mybatis-starter.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.baomidou</groupId>
|
||||||
|
<artifactId>mybatis-plus-boot-starter</artifactId>
|
||||||
|
<version>${mybatis-plus-starter.version}</version>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.mysql</groupId>
|
<groupId>com.mysql</groupId>
|
||||||
<artifactId>mysql-connector-j</artifactId>
|
<artifactId>mysql-connector-j</artifactId>
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
package io.metersphere.sdk.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import io.metersphere.domain.User;
|
||||||
|
|
||||||
|
public interface UserMapper extends BaseMapper<User> {
|
||||||
|
}
|
1
pom.xml
1
pom.xml
|
@ -33,6 +33,7 @@
|
||||||
<redisson-starter.version>3.20.1</redisson-starter.version>
|
<redisson-starter.version>3.20.1</redisson-starter.version>
|
||||||
<guice.version>5.1.0</guice.version>
|
<guice.version>5.1.0</guice.version>
|
||||||
<mybatis-starter.version>3.0.1</mybatis-starter.version>
|
<mybatis-starter.version>3.0.1</mybatis-starter.version>
|
||||||
|
<mybatis-plus-starter.version>3.5.3.1</mybatis-plus-starter.version>
|
||||||
<reflections.version>0.10.2</reflections.version>
|
<reflections.version>0.10.2</reflections.version>
|
||||||
<bcprov-jdk15on.version>1.70</bcprov-jdk15on.version>
|
<bcprov-jdk15on.version>1.70</bcprov-jdk15on.version>
|
||||||
<commons-io.version>2.11.0</commons-io.version>
|
<commons-io.version>2.11.0</commons-io.version>
|
||||||
|
|
Loading…
Reference in New Issue