1.pom.xml文件

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">;
4.0.0

activiti.demo
activiti-demo
1.0-SNAPSHOT
war

activiti-demo
spring-activiti-demo


    org.springframework.boot
    spring-boot-starter-parent
    2.0.6.RELEASE
    



    UTF-8
    UTF-8
    1.8



    
        org.springframework.boot
        spring-boot-devtools
        true
    

    
        org.springframework.boot
        spring-boot-starter-web
    

    
        org.springframework.boot
        spring-boot-starter-security
        1.5.6.RELEASE
    

    
        
        
        
    

    
        org.springframework.boot
        spring-boot-starter-test
        test
    



    
        
            org.springframework.boot
            spring-boot-maven-plugin
            
                true
            
        
    


2.创建控制器
package com.springboot.demo.controller;
import org.springframework.web.bind.annotation.*;
/**

  • @ClassName HelloController
  • @Description TODO
  • @Author yunshuodeng
  • @Date 2019-05-05 15:41
  • @Version 1.0br/>**/
    @RestController
    @RequestMapping("/hello")
    public class HelloController {br/>@GetMapping
    public String hello(){
    System.out.println("hello world");
    return "hello world";
    }
    }
    3.启动程序
    package com.springboot.demo;
    import org.springframework.boot.SpringApplication;
    import org.springframework.boot.autoconfigure.SpringBootApplication;
    /**
  • @ClassName ProviderApplication
  • @Description 提供者主入口程序
  • @Author yunshuodeng
  • @Date 2019-01-21 10:34
  • @Version 1.0br/>**/
    @SpringBootApplication
    public class ProviderApplication {
    public static void main(String[] args){
    SpringApplication.run(ProviderApplication.class,args);
    }
    }