Skip to content

Commit aa3bb83

Browse files
committed
修改安装脚本
1 parent a2d7cd4 commit aa3bb83

File tree

5 files changed

+11
-15
lines changed

5 files changed

+11
-15
lines changed

bin/lz-api.service renamed to bin/netdisk-fast-download.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[Unit]
2-
Description=lz-api
2+
Description=netdisk-fast-download
33
Documentation=https://qaiu.top
44
After=network-online.target
55
Wants=network-online.target

bin/service-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ cp ./lz-api.service /etc/systemd/system/
44
systemctl daemon-reload
55

66
# 运行服务
7-
systemctl start lz-api
7+
systemctl start netdisk-fast-download
88

99
# 在系统启动时启动服务
10-
systemctl enable lz-api
10+
systemctl enable netdisk-fast-download

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<maven.compiler.source>17</maven.compiler.source>
2020
<maven.compiler.target>17</maven.compiler.target>
2121
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
22-
<packageDirectory>${project.basedir}/netdisk-fast-download/target/package</packageDirectory>
22+
<packageDirectory>${project.basedir}/web-service/target/package</packageDirectory>
2323
</properties>
2424

2525
<build>

web-service/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1818
<slf4j.version>2.0.5</slf4j.version>
1919
<vertx-jooq.version>6.1.0</vertx-jooq.version>
20+
<finalName>netdisk-fast-download-${project.version}</finalName>
2021
</properties>
2122

2223
<dependencies>
@@ -63,7 +64,6 @@
6364
<groupId>cn.qaiu</groupId>
6465
<artifactId>core-database</artifactId>
6566
<version>0.1.3</version>
66-
<scope>compile</scope>
6767
</dependency>
6868

6969

@@ -72,7 +72,7 @@
7272
<build>
7373
<directory>${project.basedir}/target/</directory>
7474
<outputDirectory>${project.build.directory}/classes</outputDirectory>
75-
<finalName>${project.artifactId}-${project.version}</finalName>
75+
<finalName>${finalName}</finalName>
7676
<plugins>
7777
<plugin>
7878
<groupId>org.apache.maven.plugins</groupId>

web-service/src/test/java/cn/qaiu/web/test/Test01.java

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package cn.qaiu.web.test;
22

33
import io.vertx.ext.web.RoutingContext;
4-
import lombok.extern.slf4j.Slf4j;
54
import org.apache.commons.beanutils.BeanUtils;
65
import org.apache.commons.beanutils.ConvertUtils;
76
import org.apache.commons.beanutils.Converter;
@@ -17,10 +16,8 @@
1716

1817
/**
1918
* <br>Create date 2021/4/29 15:27
20-
*
2119
* @author <a href="https://qaiu.top">QAIU</a>
2220
*/
23-
@Slf4j
2421
public class Test01 {
2522

2623
public static class A {
@@ -30,7 +27,6 @@ public static class A {
3027
String num3;
3128

3229
Integer num5;
33-
3430
public Integer getNum5() {
3531
return num5;
3632
}
@@ -73,7 +69,7 @@ public void setNum3(String num3) {
7369
}
7470

7571

76-
public static class B0 {
72+
public static class B0{
7773
int num;
7874

7975
public int getNum() {
@@ -86,7 +82,7 @@ public void setNum(int num) {
8682

8783
}
8884

89-
public static class B extends B0 {
85+
public static class B extends B0{
9086
String name;
9187

9288
boolean flag;
@@ -210,14 +206,14 @@ public <T> T convert(Class<T> clazz, Object value) {
210206
//日期->字符串
211207
try {
212208
return (T) DateFormatUtils.format((Date) value, "yyyy-MM-dd");
213-
} catch (Exception e) {
214-
return (T) value;
209+
}catch (Exception e){
210+
return (T)value;
215211
}
216212
}
217213
}, String.class);
218214

219215
BeanUtils.populate(b1, map);
220-
log.info("---------> {}", b1);
216+
System.out.println(b1);
221217
}
222218

223219
}

0 commit comments

Comments
 (0)