Deploy Spring Boot or Spring Cloud Applications to Alibaba Cloud in Eclipse

Develop an Application Locally

package com.aliyun.toolkit.demo;import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class HelloWorldController {

@RequestMapping("/")
public String sayHello() {
return "Alibaba Cloud Toolkit: Hello,World.";
}
}
package com.aliyun.toolkit.demo;import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Startup {

public static void main(String[] args) {
SpringApplication.run(Startup.class,args);
}
}

Install a Plug-in

Configure the Plug-in Preferences

Deploy the Application

Description of Deployment Parameters:

source ~/.bash_profile
killall java
nohup java -jar /root/springbootdemo/springbootdemo-0.0.1-SNAPSHOT.jar > nohup.log 2>&1 &

Original Source

--

--

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store