springboot实现简单web项目(一)
配置yml文件
server: port: 8887 spring: http: encoding: charset: UTF-8 enabled: true force: true #mvc: # view: # prefix: / # suffix: .html thymeleaf: encoding: UTF-8 cache: false mode: HTML5 prefix: classpath:/templates/ suffix: .html enabled: true mvc: static-path-pattern: /** #throw-exception-if-no-handler-found: true #favicon: #enabled: false resources: static-locations: classpath:/static/ datasource: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://localhost:3306/exam?useUnicode=true&characterEncoding=utf-8 username: root password: root freemarker: suffix: .html mybatis: mapper-locations: classpath:mapper/**/*.xml configuration: map-underscore-to-camel-case: true logging: level: com.example.myexam.mapper: debug