旨在开箱即用,无需再重新编写一些通用web配置
pom.xml 引入
<dependency>
<groupId>cn.riris</groupId>
<artifactId>web-common</artifactId>
<version>1.0.1.RELEASE</version>
</dependency>
配置swagger
swagger-info:
description: 123
title: hrl
name: 123
version: '@version@'
url: 123
email: 1123
配置logback
server:
port: 12345
spring:
application:
name: app
profiles:
active: dev
logging:
pod-name: ${hostname:dev} # 支持k8s
file:
path: 'C:\Users\bryce\Desktop\log'
max-size: 100MB
total-size-cap: 300GB
max-history: 30
config: 'classpath:logback-spring.xml' #此处不要更改
level:
root: info