This commit is contained in:
yuzchen 2024-01-30 15:29:56 +08:00
parent 5a3d150164
commit c040298321
3 changed files with 21 additions and 1 deletions

View File

@ -17,4 +17,10 @@ public class GreetingController {
}
@GetMapping("/health")
public String healthcheck() {
return "OKOKOK";
}
}

View File

@ -1 +0,0 @@
server.port=7008

View File

@ -0,0 +1,15 @@
server:
port: 7008
tomcat:
accesslog:
enabled: true
pattern: '%{yyyy-MM-dd HH:mm:ss}t %a %A %m %s %D %b %I %U%q %{User-Agent}i'
# directory: /Users/chenyuzhen/tomcatlog/demo4bonus/
directory: /opt/webapps/logs/demo4bonus/
prefix: accesslog
suffix: .log
fileDateFormat: _yyyyMMdd
rotate: true
renameOnRotate: false
buffered: true
requestAttributesEnabled: true