From 8028bb92e47cfdbaf28cd79a287e6a73a20ea1ab Mon Sep 17 00:00:00 2001 From: liwq <122639653@qq.com> Date: Wed, 11 Jun 2025 13:59:05 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 69 +++++++++++++++---- spring-plugin-mapstruct/.gitignore | 33 +++++++++ spring-plugin-mapstruct/pom.xml | 54 +++++++++++++++ .../com/plugins/mapstruct/convert/aaa.java | 14 ++++ .../src/main/resources/application.properties | 1 + ...SpringPluginMapstructApplicationTests.java | 13 ++++ 6 files changed, 172 insertions(+), 12 deletions(-) create mode 100644 spring-plugin-mapstruct/.gitignore create mode 100644 spring-plugin-mapstruct/pom.xml create mode 100644 spring-plugin-mapstruct/src/main/java/com/plugins/mapstruct/convert/aaa.java create mode 100644 spring-plugin-mapstruct/src/main/resources/application.properties create mode 100644 spring-plugin-mapstruct/src/test/java/com/plugins/mapstruct/SpringPluginMapstructApplicationTests.java diff --git a/pom.xml b/pom.xml index 3d367b4..cf6125b 100644 --- a/pom.xml +++ b/pom.xml @@ -1,18 +1,63 @@ - 4.0.0 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 - com.plugins - plugins-integration - 1.0.0 - pom + com.plugins + plugins-integration + 1.0.0 + pom - plugins-integration + plugins-integration - - UTF-8 - + + 17 + UTF-8 + UTF-8 + + 3.5.0 + + 1.4.8 + 0.2.0 + 1.18.36 + 5.8.35 + + + + + + + + org.springframework.boot + spring-boot-dependencies + ${spring-boot.version} + pom + import + + + + + cn.hutool + hutool-bom + ${hutool.version} + pom + import + + + + + io.github.linpeilie + mapstruct-plus-spring-boot-starter + ${mapstruct-plus.version} + + + + + org.springframework.boot + spring-boot-starter-test + ${spring-boot.version} + test + + + - - diff --git a/spring-plugin-mapstruct/.gitignore b/spring-plugin-mapstruct/.gitignore new file mode 100644 index 0000000..667aaef --- /dev/null +++ b/spring-plugin-mapstruct/.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/spring-plugin-mapstruct/pom.xml b/spring-plugin-mapstruct/pom.xml new file mode 100644 index 0000000..5941fb7 --- /dev/null +++ b/spring-plugin-mapstruct/pom.xml @@ -0,0 +1,54 @@ + + + 4.0.0 + + com.plugins + plugins-integration + 1.0.0 + + spring-plugin-mapstruct + + spring-plugin-mapstruct + mapstruct 插件 + + + + io.github.linpeilie + mapstruct-plus-spring-boot-starter + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + 17 + 17 + + + org.projectlombok + lombok + ${lombok.version} + + + io.github.linpeilie + mapstruct-plus-processor + ${mapstruct-plus.version} + + + org.projectlombok + lombok-mapstruct-binding + 0.2.0 + + + + + + + + + diff --git a/spring-plugin-mapstruct/src/main/java/com/plugins/mapstruct/convert/aaa.java b/spring-plugin-mapstruct/src/main/java/com/plugins/mapstruct/convert/aaa.java new file mode 100644 index 0000000..5d4659c --- /dev/null +++ b/spring-plugin-mapstruct/src/main/java/com/plugins/mapstruct/convert/aaa.java @@ -0,0 +1,14 @@ +package com.plugins.mapstruct.convert; + +import org.mapstruct.Named; + +public class aaa { + + + @Named("stringToByte") + public static void main(String[] args) { + + + } + +} diff --git a/spring-plugin-mapstruct/src/main/resources/application.properties b/spring-plugin-mapstruct/src/main/resources/application.properties new file mode 100644 index 0000000..01e1608 --- /dev/null +++ b/spring-plugin-mapstruct/src/main/resources/application.properties @@ -0,0 +1 @@ +spring.application.name=spring-plugin-mapstruct diff --git a/spring-plugin-mapstruct/src/test/java/com/plugins/mapstruct/SpringPluginMapstructApplicationTests.java b/spring-plugin-mapstruct/src/test/java/com/plugins/mapstruct/SpringPluginMapstructApplicationTests.java new file mode 100644 index 0000000..cd6e47e --- /dev/null +++ b/spring-plugin-mapstruct/src/test/java/com/plugins/mapstruct/SpringPluginMapstructApplicationTests.java @@ -0,0 +1,13 @@ +package com.plugins.mapstruct; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class SpringPluginMapstructApplicationTests { + + @Test + void contextLoads() { + } + +}