springboot入门
package com.imooc.myspringboot_inttell.controller; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @Controller public class MyController { @Value("${mall.config.name}") private String name; @Value("${mall.config.description}") private String description; @Value("${mall.config.hot-sales}") private Integer hotSales; @Value("${mall.config.show-advert}") private Boolean showAdvert; @RequestMapping("/out")