Commit f9669e3b authored by jwc's avatar jwc

项目优化

parent baaddbde
...@@ -37,12 +37,6 @@ ...@@ -37,12 +37,6 @@
</properties> </properties>
<dependencies> <dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<!--web核心依赖-->
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId> <artifactId>spring-boot-starter-web</artifactId>
...@@ -114,17 +108,6 @@ ...@@ -114,17 +108,6 @@
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
<version>2.3.0.RELEASE</version> <version>2.3.0.RELEASE</version>
<configuration>
<mainClass>cn.zingfin.MainApplication</mainClass>
</configuration>
<executions>
<execution>
<id>repackage</id>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>com.spotify</groupId> <groupId>com.spotify</groupId>
...@@ -132,7 +115,7 @@ ...@@ -132,7 +115,7 @@
<version>1.2.0</version> <version>1.2.0</version>
<configuration> <configuration>
<imageName>${docker.image.prefix}/${project.artifactId}</imageName> <imageName>${docker.image.prefix}/${project.artifactId}</imageName>
<dockerDirectory>src/main/resources/docker</dockerDirectory> <dockerDirectory>src/main/resources</dockerDirectory>
<resources> <resources>
<resource> <resource>
<targetPath>/</targetPath> <targetPath>/</targetPath>
......
package cn.zingfin.common.constant; package cn.zingfin.common.constants;
/** /**
* @author jwc * @author jwc
......
package cn.zingfin.common.util; package cn.zingfin.common.utils;
/** /**
* @author jwc * @author jwc
* @date 2020/9/8 13:53 * @date 2020/9/11 17:51
*/ */
public class DemoUtil { public class DemoUtil {
} }
...@@ -2,7 +2,6 @@ package cn.zingfin.web.controller; ...@@ -2,7 +2,6 @@ package cn.zingfin.web.controller;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
...@@ -14,13 +13,12 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -14,13 +13,12 @@ import org.springframework.web.bind.annotation.RestController;
@Api(tags = "测试接口") @Api(tags = "测试接口")
@RequestMapping("/main") @RequestMapping("/main")
@RestController @RestController
@Slf4j
public class HelloWorldController { public class HelloWorldController {
@ApiOperation("新增代理商") @ApiOperation("新增代理商")
@GetMapping("/hello") @GetMapping("/hello")
public String hello() { public String hello() {
log.info("hello world!"); System.out.println("你好呀,小顽皮");
return "hello world!"; return "hello world!";
} }
......
package cn.zingfin.web.model; package cn.zingfin.web.model;
import lombok.Data;
/** /**
* @author jwc * @author jwc
* @date 2020/8/31 14:46 * @date 2020/8/31 14:46
*/ */
@Data
public class InputModel { public class InputModel {
private String name; private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
} }
FROM centos-jdk8 FROM mycentos-jdk8
ADD demo-0.0.1-SNAPSHOT.jar /opt/app/demo-0.0.1-SNAPSHOT.jar ADD demo-0.0.1-SNAPSHOT.jar /opt/app/demo-0.0.1-SNAPSHOT.jar
ENV JAVA_HOME=/opt/jdk1.8.0_261
ENV CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
ENV PATH=$JAVA_HOME/bin:$PATH
ENTRYPOINT [ \ ENTRYPOINT [ \
"java","-Djava.security.egd=file:/dev/./urandom", \ "java","-Djava.security.egd=file:/dev/./urandom", \
"-Duser.timezone=Asia/Shanghai", \ "-Duser.timezone=Asia/Shanghai", \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment