测试代码优化

This commit is contained in:
thinkgem
2018-11-20 21:25:33 +08:00
parent da5c212536
commit e6fe7b5420
11 changed files with 50 additions and 46 deletions

View File

@@ -474,17 +474,20 @@ file:
# 上传单个文件最大字节500M在这之上还有 > Tomcat限制 > Nginx限制此设置会覆盖 spring.http.multipart.maxFileSize 设置
maxFileSize: 500*1024*1024
#设置允许上传的文件后缀
# 设置允许上传的文件后缀
imageAllowSuffixes: .gif,.bmp,.jpeg,.jpg,.ico,.png,.tif,.tiff,
mediaAllowSuffixes: .flv,.swf,.mkv,webm,.mid,.mov,.mp3,.mp4,.m4v,.mpc,.mpeg,.mpg,.swf,.wav,.wma,.wmv,.avi,.rm,.rmi,.rmvb,.aiff,.asf,.ogg,.ogv,
fileAllowSuffixes: .doc,.docx,.rtf,.xls,.xlsx,.csv,.ppt,.pptx,.pdf,.vsd,.txt,.md,.xml,.rar,.zip,7z,.tar,.tgz,.jar,.gz,.gzip,.bz2,.cab,.iso,.ipa,.apk,
#允许上传的文件内容类型图片、word、excel、ppt防止修改后缀恶意上传文件默认不启用验证
# 允许上传的文件内容类型图片、word、excel、ppt防止修改后缀恶意上传文件默认不启用验证
# allowContentTypes: image/jpeg,image/gif,image/bmp,image/png,image/x-png,
# application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,
# application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
# application/vnd.ms-powerpoint,application/vnd.openxmlformats-officedocument.presentationml.presentation
# 是否已文件流方式下载
isFileStreamDown: false
#======================================#
#========== Message settings ==========#
#======================================#

View File

@@ -45,7 +45,7 @@ public class MobileAppTest {
private static String loginUrl = "/login"
+ "?username=" + DesUtils.encode("system", "thinkgem,jeesite,com")
+ "&password=" + DesUtils.encode("admin", "thinkgem,jeesite,com")
+ "&param_deviceType=mobileApp&__sid=";
+ "&param_deviceType=mobileApp&param_lang=zh_CN&__sid=";
/**
* 存储的会话编号则通过getSid()获取。

View File

@@ -18,3 +18,6 @@ jdbc:
password: 123456
testSql: SELECT 1
# 日志配置
logging:
config: classpath:logback.xml