mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2025-12-16 20:33:03 +00:00
修改安装脚本
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=lz-api
|
Description=netdisk-fast-download
|
||||||
Documentation=https://qaiu.top
|
Documentation=https://qaiu.top
|
||||||
After=network-online.target
|
After=network-online.target
|
||||||
Wants=network-online.target
|
Wants=network-online.target
|
||||||
@@ -4,7 +4,7 @@ cp ./lz-api.service /etc/systemd/system/
|
|||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
|
||||||
# 运行服务
|
# 运行服务
|
||||||
systemctl start lz-api
|
systemctl start netdisk-fast-download
|
||||||
|
|
||||||
# 在系统启动时启动服务
|
# 在系统启动时启动服务
|
||||||
systemctl enable lz-api
|
systemctl enable netdisk-fast-download
|
||||||
|
|||||||
2
pom.xml
2
pom.xml
@@ -19,7 +19,7 @@
|
|||||||
<maven.compiler.source>17</maven.compiler.source>
|
<maven.compiler.source>17</maven.compiler.source>
|
||||||
<maven.compiler.target>17</maven.compiler.target>
|
<maven.compiler.target>17</maven.compiler.target>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<packageDirectory>${project.basedir}/netdisk-fast-download/target/package</packageDirectory>
|
<packageDirectory>${project.basedir}/web-service/target/package</packageDirectory>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<slf4j.version>2.0.5</slf4j.version>
|
<slf4j.version>2.0.5</slf4j.version>
|
||||||
<vertx-jooq.version>6.1.0</vertx-jooq.version>
|
<vertx-jooq.version>6.1.0</vertx-jooq.version>
|
||||||
|
<finalName>netdisk-fast-download-${project.version}</finalName>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
@@ -63,7 +64,6 @@
|
|||||||
<groupId>cn.qaiu</groupId>
|
<groupId>cn.qaiu</groupId>
|
||||||
<artifactId>core-database</artifactId>
|
<artifactId>core-database</artifactId>
|
||||||
<version>0.1.3</version>
|
<version>0.1.3</version>
|
||||||
<scope>compile</scope>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
@@ -72,7 +72,7 @@
|
|||||||
<build>
|
<build>
|
||||||
<directory>${project.basedir}/target/</directory>
|
<directory>${project.basedir}/target/</directory>
|
||||||
<outputDirectory>${project.build.directory}/classes</outputDirectory>
|
<outputDirectory>${project.build.directory}/classes</outputDirectory>
|
||||||
<finalName>${project.artifactId}-${project.version}</finalName>
|
<finalName>${finalName}</finalName>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package cn.qaiu.web.test;
|
package cn.qaiu.web.test;
|
||||||
|
|
||||||
import io.vertx.ext.web.RoutingContext;
|
import io.vertx.ext.web.RoutingContext;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
import org.apache.commons.beanutils.BeanUtils;
|
import org.apache.commons.beanutils.BeanUtils;
|
||||||
import org.apache.commons.beanutils.ConvertUtils;
|
import org.apache.commons.beanutils.ConvertUtils;
|
||||||
import org.apache.commons.beanutils.Converter;
|
import org.apache.commons.beanutils.Converter;
|
||||||
@@ -17,10 +16,8 @@ import java.util.Map;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* <br>Create date 2021/4/29 15:27
|
* <br>Create date 2021/4/29 15:27
|
||||||
*
|
|
||||||
* @author <a href="https://qaiu.top">QAIU</a>
|
* @author <a href="https://qaiu.top">QAIU</a>
|
||||||
*/
|
*/
|
||||||
@Slf4j
|
|
||||||
public class Test01 {
|
public class Test01 {
|
||||||
|
|
||||||
public static class A {
|
public static class A {
|
||||||
@@ -30,7 +27,6 @@ public class Test01 {
|
|||||||
String num3;
|
String num3;
|
||||||
|
|
||||||
Integer num5;
|
Integer num5;
|
||||||
|
|
||||||
public Integer getNum5() {
|
public Integer getNum5() {
|
||||||
return num5;
|
return num5;
|
||||||
}
|
}
|
||||||
@@ -73,7 +69,7 @@ public class Test01 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static class B0 {
|
public static class B0{
|
||||||
int num;
|
int num;
|
||||||
|
|
||||||
public int getNum() {
|
public int getNum() {
|
||||||
@@ -86,7 +82,7 @@ public class Test01 {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class B extends B0 {
|
public static class B extends B0{
|
||||||
String name;
|
String name;
|
||||||
|
|
||||||
boolean flag;
|
boolean flag;
|
||||||
@@ -210,14 +206,14 @@ public class Test01 {
|
|||||||
//日期->字符串
|
//日期->字符串
|
||||||
try {
|
try {
|
||||||
return (T) DateFormatUtils.format((Date) value, "yyyy-MM-dd");
|
return (T) DateFormatUtils.format((Date) value, "yyyy-MM-dd");
|
||||||
} catch (Exception e) {
|
}catch (Exception e){
|
||||||
return (T) value;
|
return (T)value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, String.class);
|
}, String.class);
|
||||||
|
|
||||||
BeanUtils.populate(b1, map);
|
BeanUtils.populate(b1, map);
|
||||||
log.info("---------> {}", b1);
|
System.out.println(b1);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user