• Spring Boot


    http://git.oschina.net/didispace/SpringBoot-Learning

    package com.example.demo;

    import org.springframework.boot.SpringApplication;
    import org.springframework.boot.autoconfigure.SpringBootApplication;
    import org.springframework.web.bind.annotation.RequestMapping;
    import org.springframework.web.bind.annotation.RestController;
    import org.springframework.web.bind.annotation.RequestMethod;

    @RestController
    @SpringBootApplication
    public class DemoApplication {

    public static void main(String[] args) {

    SpringApplication.run(DemoApplication.class, args);
    }

    @RequestMapping(value = {"/hello","/hi"},method = RequestMethod.GET)
    public String say(){
    return "hi you!!!";
    }

    }
  • 相关阅读:
    luogu 2962 [USACO09NOV]灯Lights
    bzoj 1923
    bzoj 1013
    bzoj 3513
    bzoj 4259
    bzoj 4503
    CF 632E
    bzoj 3527
    bzoj 3160
    bzoj 2179
  • 原文地址:https://www.cnblogs.com/mhc-fly/p/7078330.html
Copyright © 2020-2023  润新知