Sign inSign up

pkandukuri/springboot

By pkandukuri

Updated about 8 years ago

Debian OS 8 (jessie) with plain Spring boot v2.0.4

Image
0

10K+

pkandukuri/springboot repository overview

Env Specs

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

To start docker container:

docker run -it -p 11221:8080 pkandukuri/springboot /bin/bash

To create sample service

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); }

} +++++++++++++++++++++++++++

Command to start springboot

spring run Example.java <<wait for 1 min>>

Now go to browser and access http://localhost:11221 You should get response " Hello World!"

Congratulations!!!

Tag summary

Content type

Image

Digest

Size

487 MB

Last updated

about 8 years ago

docker pull pkandukuri/springboot