提交 331a431b 编写于 作者: Q qinxiaodong@pannk.com

common config

上级 2e7b5e7a
## SpringBoot2课程代码
### first-application
\ No newline at end of file
### first-application
## common-config
\ No newline at end of file
package com.pannk.demo.commonconfig.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
/**
* Created by wolf on 20-10-31.
*/
@RestController
public class IndexController {
@GetMapping("/hello/{name}")
public String hello(@PathVariable String name){
return String.format("Hello,%s!\n",name);
}
}
......@@ -4,4 +4,11 @@ server:
context-path: /
spring:
application:
name: commonConfig
\ No newline at end of file
name: commonConfig
main:
log-startup-info: true # 启动应用的用户 PID profiles 启动用时
banner:
location: banner.txt
logging:
level:
org.springframework.web: trace # TRACE DEBUG INFO WARN ERROR FATAL OFF
\ No newline at end of file
=================欢迎学习SpringBoot2实战课程================
\ No newline at end of file
=================欢迎学习SpringBoot2实战课程================
${spring-boot.version}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册