項目屬性配置
application.properties
application.yml
———————————————————————————————————————————

注解
@value("${cupsize}")
private string cupsize;
@value("${age}")
private integer age;
————————————
@component
@configurationproperties(prefix = "girl")
@autowired
controller的使用
@controller 處理http請求
@restcontroller spring4之後新加的注解,原來傳回json需要@responsebody配合@controller
@resquestmapping 配置url映射
@pathvariable 擷取url中的資料
@requestparam 擷取請求參數的值
@getmapping 組合注解
@postmapping 組合注解