Debian OS 8 (jessie) with plain Spring boot v2.0.4
10K+
Debian OS 8 (jessie) Spring boot v2.0.4 ( Location: /sw/springboot) JDK : jdk1.8.0_181 ( Location: /sw/jdk1.8.0_181)
export PATH=/sw/jdk1.8.0_181/bin:/sw/springboot/current/bin
docker run -it -p 11221:8080 pkandukuri/springboot /bin/bash
create file: Example.java +++++++++++++++++++++++++++ import org.springframework.boot.; import org.springframework.boot.autoconfigure.; import org.springframework.web.bind.annotation.*;
@RestController @EnableAutoConfiguration public class Example {
@RequestMapping("/") String home() { return "Hello World!"; }
public static void main(String[] args) throws Exception { SpringApplication.run(Example.class, args); }
} +++++++++++++++++++++++++++
spring run Example.java <<wait for 1 min>>
Now go to browser and access http://localhost:11221 You should get response " Hello World!"
Congratulations!!!
Content type
Image
Digest
Size
487 MB
Last updated
about 8 years ago
docker pull pkandukuri/springboot