Skip to content

Commit 42d402e

Browse files
committed
Update
1 parent 30ae51c commit 42d402e

File tree

17 files changed

+288
-4
lines changed

17 files changed

+288
-4
lines changed

pom.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@
1818
<properties>
1919
<revision>1.0.33</revision>
2020

21-
<java.version>11</java.version>
22-
<java.source.version>11</java.source.version>
23-
<java.target.version>11</java.target.version>
21+
<java.version>17</java.version>
22+
<java.source.version>17</java.source.version>
23+
<java.target.version>17</java.target.version>
24+
<maven.compiler.source>17</maven.compiler.source>
25+
<maven.compiler.target>17</maven.compiler.target>
2426
<!-- Maven plugins -->
2527
<maven-compiler-plugin.version>3.6.0</maven-compiler-plugin.version>
2628
<maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>

spring-boot-dependencies/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,16 @@
102102
<artifactId>mybatis-plus-extensions-change-log-spring-boot-starter</artifactId>
103103
<version>${project.version}</version>
104104
</dependency>
105+
<dependency>
106+
<groupId>${project.groupId}</groupId>
107+
<artifactId>mybatis-plus-extensions-webmagic-autoconfigure</artifactId>
108+
<version>${project.version}</version>
109+
</dependency>
110+
<dependency>
111+
<groupId>${project.groupId}</groupId>
112+
<artifactId>mybatis-plus-extensions-webmagic-spring-boot-starter</artifactId>
113+
<version>${project.version}</version>
114+
</dependency>
105115
<dependency>
106116
<groupId>${project.groupId}</groupId>
107117
<artifactId>mybatis-plus-extensions-task-autoconfigure</artifactId>
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>mybatis-plus-extensions</artifactId>
7+
<groupId>in.hocg.boot</groupId>
8+
<version>${revision}</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<name>Mybatis Plus :: Extensions :: WebMagic</name>
13+
<artifactId>mybatis-plus-extensions-webmagic-autoconfigure</artifactId>
14+
15+
<dependencies>
16+
<dependency>
17+
<groupId>${project.groupId}</groupId>
18+
<artifactId>mybatis-plus-extensions-context</artifactId>
19+
</dependency>
20+
<dependency>
21+
<groupId>${project.groupId}</groupId>
22+
<artifactId>mybatis-plus-spring-boot-starter</artifactId>
23+
</dependency>
24+
<dependency>
25+
<groupId>org.springframework.boot</groupId>
26+
<artifactId>spring-boot-starter-web</artifactId>
27+
<optional>true</optional>
28+
</dependency>
29+
<!-- Basic -->
30+
<dependency>
31+
<groupId>org.springframework.boot</groupId>
32+
<artifactId>spring-boot-autoconfigure</artifactId>
33+
</dependency>
34+
<dependency>
35+
<groupId>org.springframework.boot</groupId>
36+
<artifactId>spring-boot-configuration-processor</artifactId>
37+
<optional>true</optional>
38+
</dependency>
39+
<dependency>
40+
<groupId>org.springframework.boot</groupId>
41+
<artifactId>spring-boot-autoconfigure-processor</artifactId>
42+
<optional>true</optional>
43+
</dependency>
44+
</dependencies>
45+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package in.hocg.boot.mybatis.plus.extensions.webmagic;
2+
3+
4+
/**
5+
* Created by hocgin on 2022/3/24
6+
7+
*
8+
* @author hocgin
9+
*/
10+
public class TplMpe {
11+
public static final String PACKAGE = MyBatisPlusExtensionsConstants.PACKAGE_PREFIX + ".webmagic";
12+
public static final String MAPPER_PACKAGE = TplMpe.PACKAGE + ".mapper";
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package in.hocg.boot.mybatis.plus.extensions.webmagic.autoconfiguration;
2+
3+
import lombok.extern.slf4j.Slf4j;
4+
import org.springframework.context.annotation.Configuration;
5+
6+
/**
7+
* Created by hocgin on 2022/3/24
8+
9+
*
10+
* @author hocgin
11+
*/
12+
@Slf4j
13+
@Configuration
14+
public class TplMybatisPlusExtAutoConfiguration {
15+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package in.hocg.boot.mybatis.plus.extensions.webmagic.entity;
2+
3+
import in.hocg.boot.mybatis.plus.autoconfiguration.core.struct.basic.enhance.CommonEntity;
4+
import lombok.Data;
5+
import lombok.EqualsAndHashCode;
6+
import lombok.experimental.Accessors;
7+
8+
/**
9+
* Created by hocgin on 2022/3/24
10+
11+
*
12+
* @author hocgin
13+
*/
14+
@Data
15+
@EqualsAndHashCode(callSuper = true)
16+
@Accessors(chain = true)
17+
public class Tpl extends CommonEntity<Tpl> {
18+
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package in.hocg.boot.mybatis.plus.extensions.webmagic.mapper;
2+
3+
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4+
import in.hocg.boot.mybatis.plus.extensions.tpl.entity.Tpl;
5+
import org.apache.ibatis.annotations.Mapper;
6+
7+
/**
8+
* Created by hocgin on 2022/3/24
9+
10+
*
11+
* @author hocgin
12+
*/
13+
@Mapper
14+
public interface TplMpeMapper extends BaseMapper<Tpl> {
15+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3+
<mapper namespace="in.hocg.boot.mybatis.plus.extensions.webmagic.mapper.TplMpeMapper">
4+
</mapper>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package in.hocg.boot.mybatis.plus.extensions.webmagic.service;
2+
3+
import in.hocg.boot.mybatis.plus.autoconfiguration.core.struct.basic.AbstractService;
4+
import in.hocg.boot.mybatis.plus.extensions.tpl.entity.Tpl;
5+
6+
/**
7+
* Created by hocgin on 2022/3/24
8+
9+
*
10+
* @author hocgin
11+
*/
12+
public interface TplMpeService extends AbstractService<Tpl> {
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package in.hocg.boot.mybatis.plus.extensions.webmagic.service.impl;
2+
3+
import in.hocg.boot.mybatis.plus.autoconfiguration.core.struct.basic.AbstractServiceImpl;
4+
import in.hocg.boot.mybatis.plus.extensions.tpl.mapper.TplMpeMapper;
5+
import in.hocg.boot.mybatis.plus.extensions.tpl.service.TplMpeService;
6+
import in.hocg.boot.mybatis.plus.extensions.tpl.entity.Tpl;
7+
import lombok.RequiredArgsConstructor;
8+
import org.springframework.context.annotation.Lazy;
9+
import org.springframework.stereotype.Service;
10+
11+
/**
12+
* Created by hocgin on 2022/3/24
13+
14+
*
15+
* @author hocgin
16+
*/
17+
@Service
18+
@RequiredArgsConstructor(onConstructor = @__(@Lazy))
19+
public class TplMpeServiceImpl extends AbstractServiceImpl<TplMpeMapper, Tpl>
20+
implements TplMpeService {
21+
}

0 commit comments

Comments
 (0)