SpringBoot 配置片段
application.yml 常用片段,按模块复制拼接。
广告位(百度联盟文中广告位)
服务与端口
server:
port: 8080
servlet:
context-path: /api数据源
spring:
datasource:
url: jdbc:mysql://localhost:3306/app?useSSL=false
username: root
password: "****"
driver-class-name: com.mysql.cj.jdbc.DriverJPA
spring:
jpa:
hibernate:
ddl-auto: update
show-sql: false
properties:
hibernate.format_sql: true日志
logging:
level:
root: INFO
com.example: DEBUG广告位(百度联盟信息流广告位)