main v1.0.0
liangjiajie 6 months ago
parent 9e38a09e49
commit b409d9deb0

@ -0,0 +1,4 @@
FROM openjdk:8-jdk
COPY myspringboot.jar /usr/local
WORKDIR /usr/local
CMD java -jar myspringboot.jar

@ -0,0 +1,8 @@
version: '3.1'
services:
mytest:
build: .
image: mytest:v1.0.0
container_name: mytest
ports:
- "8088:8080"

@ -56,6 +56,7 @@
</dependencyManagement>
<build>
<finalName>myspringboot</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>

@ -32,7 +32,7 @@ public class BasicController {
@RequestMapping("/hello")
@ResponseBody
public String hello(@RequestParam(name = "name", defaultValue = "unknown user") String name) {
return "Hello " + name;
return "Hello fiojdos " + name;
}
// http://127.0.0.1:8080/user

Loading…
Cancel
Save