mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2025-12-15 11:53:02 +00:00
修改安装脚本
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
[Unit]
|
||||
Description=lz-api
|
||||
Description=netdisk-fast-download
|
||||
Documentation=https://qaiu.top
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
@@ -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
|
||||
|
||||
2
pom.xml
2
pom.xml
@@ -19,7 +19,7 @@
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<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>
|
||||
|
||||
<build>
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<slf4j.version>2.0.5</slf4j.version>
|
||||
<vertx-jooq.version>6.1.0</vertx-jooq.version>
|
||||
<finalName>netdisk-fast-download-${project.version}</finalName>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
@@ -63,7 +64,6 @@
|
||||
<groupId>cn.qaiu</groupId>
|
||||
<artifactId>core-database</artifactId>
|
||||
<version>0.1.3</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
<build>
|
||||
<directory>${project.basedir}/target/</directory>
|
||||
<outputDirectory>${project.build.directory}/classes</outputDirectory>
|
||||
<finalName>${project.artifactId}-${project.version}</finalName>
|
||||
<finalName>${finalName}</finalName>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
|
||||
@@ -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;
|
||||
|
||||
/**
|
||||
* <br>Create date 2021/4/29 15:27
|
||||
*
|
||||
* @author <a href="https://qaiu.top">QAIU</a>
|
||||
*/
|
||||
@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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user