原因:配置出错;修改freemarker配置后能访问到正确页面
spring: datasource: url: jdbc:mysql://127.0.0.1:3306/study?characterEncoding=utf8 username: root password: root driver-class-name: com.mysql.jdbc.Driver freemarker: cache: false charset: UTF-8 content-type: text/html request-context-attribute: request template-loader-path: /WEB-INF/views/ suffix: .ftl