提交 a35a8e4d 编写于 作者: W wenguang

页面修改

上级 19c42580
workspace
.project
.classpath
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
......@@ -128,7 +128,7 @@ public class FileController {
}
model.addAttribute("inputPath", inputPath);
model.addAttribute("fileNames", files);
return "fileDownload";
return prefix + "/fileDownload";
}
/**
......
server.port=9999
#启用文件上传,默认为true
spring.servlet.multipart.enabled=true
#文件大于该阈值时,将写入磁盘(KB/MB)
spring.servlet.multipart.file-size-threshold=0KB
#单个文件最大值(KB/MB)
spring.servlet.multipart.max-file-size=5120MB
#单个请求多个文件的最大值(KB/MB)
spring.servlet.multipart.max-request-size=5120MB
#thymeleaf
spring.thymeleaf.prefix=classpath:/templates/
spring.thymeleaf.suffix=.html
spring.thymeleaf.mode=LEGACYHTML5
spring.thymeleaf.encoding=UTF-8
spring.thymeleaf.content-type=text/html
# 禁用 thymeleaf 缓存
spring.thymeleaf.cache=false
server:
port: 9999
spring:
datasource:
url: jdbc:mysql://localhost:3306/stutest?useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=GMT%2B8
username: root
password: 1234
driver-class-name: com.mysql.cj.jdbc.Driver
thymeleaf:
prefix: classpath:/templates/
suffix: .html
mode: LEGACYHTML5
encoding: UTF-8
content-type: text/html
# 禁用 thymeleaf 缓存
cache: false
mybatis:
#注意:一定要对应mapper映射xml文件的所在路径
mapper-locations: classpath:mapper/*.xml
# 注意:对应实体类的路径
type-aliases-package: com.we.pojo
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml" >
<head>
<meta charset="UTF-8">
<meta charset="UTF-8"/>
<title>Title</title>
</head>
<body>
......
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<meta charset="UTF-8"/>
<title>基于cropper.js的图片裁剪</title>
<script type="text/javascript" src="static/photograph/jquery-1.11.3.js"></script>
<script type="text/javascript" src="static/photograph/cropper.min.js"></script>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册