diff --git a/bin/lz-api.service b/bin/netdisk-fast-download.service similarity index 91% rename from bin/lz-api.service rename to bin/netdisk-fast-download.service index 91ad871..da107c4 100644 --- a/bin/lz-api.service +++ b/bin/netdisk-fast-download.service @@ -1,5 +1,5 @@ [Unit] -Description=lz-api +Description=netdisk-fast-download Documentation=https://qaiu.top After=network-online.target Wants=network-online.target diff --git a/bin/service-install.sh b/bin/service-install.sh index cb21cf6..5a3027c 100644 --- a/bin/service-install.sh +++ b/bin/service-install.sh @@ -4,7 +4,7 @@ cp ./lz-api.service /etc/systemd/system/ systemctl daemon-reload # 运行服务 -systemctl start lz-api +systemctl start netdisk-fast-download # 在系统启动时启动服务 -systemctl enable lz-api +systemctl enable netdisk-fast-download diff --git a/pom.xml b/pom.xml index 27b9dd8..c130663 100644 --- a/pom.xml +++ b/pom.xml @@ -19,7 +19,7 @@ 17 17 UTF-8 - ${project.basedir}/netdisk-fast-download/target/package + ${project.basedir}/web-service/target/package diff --git a/web-service/pom.xml b/web-service/pom.xml index 946a915..0006f36 100644 --- a/web-service/pom.xml +++ b/web-service/pom.xml @@ -17,6 +17,7 @@ UTF-8 2.0.5 6.1.0 + netdisk-fast-download-${project.version} @@ -63,7 +64,6 @@ cn.qaiu core-database 0.1.3 - compile @@ -72,7 +72,7 @@ ${project.basedir}/target/ ${project.build.directory}/classes - ${project.artifactId}-${project.version} + ${finalName} org.apache.maven.plugins diff --git a/web-service/src/test/java/cn/qaiu/web/test/Test01.java b/web-service/src/test/java/cn/qaiu/web/test/Test01.java index a8b27dc..8e50cf1 100644 --- a/web-service/src/test/java/cn/qaiu/web/test/Test01.java +++ b/web-service/src/test/java/cn/qaiu/web/test/Test01.java @@ -1,7 +1,6 @@ package cn.qaiu.web.test; import io.vertx.ext.web.RoutingContext; -import lombok.extern.slf4j.Slf4j; import org.apache.commons.beanutils.BeanUtils; import org.apache.commons.beanutils.ConvertUtils; import org.apache.commons.beanutils.Converter; @@ -17,10 +16,8 @@ import java.util.Map; /** *
Create date 2021/4/29 15:27 - * * @author QAIU */ -@Slf4j public class Test01 { public static class A { @@ -30,7 +27,6 @@ public class Test01 { String num3; Integer num5; - public Integer getNum5() { return num5; } @@ -73,7 +69,7 @@ public class Test01 { } - public static class B0 { + public static class B0{ int num; public int getNum() { @@ -86,7 +82,7 @@ public class Test01 { } - public static class B extends B0 { + public static class B extends B0{ String name; boolean flag; @@ -210,14 +206,14 @@ public class Test01 { //日期->字符串 try { return (T) DateFormatUtils.format((Date) value, "yyyy-MM-dd"); - } catch (Exception e) { - return (T) value; + }catch (Exception e){ + return (T)value; } } }, String.class); BeanUtils.populate(b1, map); - log.info("---------> {}", b1); + System.out.println(b1); } }