Fancy
2024-10-18 404ca5b447c5d20bdaf83faef88aea76f9db583c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
logging:
    charset:
        console: UTF-8
    config:
        classpath: log4j2.yml
 
#web服务端口,tomcat默认是8080
server:
    error:
        whitelabel:
            enabled: false
    port: 13579
    servlet:
        context-path: /test #web访问上下文路径
        encoding:
            #取消默认的字符集编码
            enabled: true
            #设置强制使用指定字符编码集
            force: true
            #使用的字符编码
            charset: utf-8
 
#禁止启动数据库连接池
spring:
#autoconfigure:
#    exclude:
#        - org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
#        - org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration
#        - org.springframework.boot.autoconfigure.jdbc.JndiDataSourceAutoConfiguration