Saturday, 9 September 2017

Deploy spring boot application in PCF using spring STS

Deploy sample spring boot application in PCF using spring  STS:





public class SampleRest {

                 private static final Logger LOG = Logger.getLogger(SampleRest.class);


@GetMapping("/helllo" )

public String hello() {
                System.out.println("studet =");
               return "sample test";


Create connection to PCF using STS:

After compete the above process will get the connection as shown below:

Drag and drop the application as shown below:

Check the application status  in PCF:

Login to the PFC using below URL:

Access the application using below url:

No comments:

Post a Comment