注释规范
This commit is contained in:
@@ -73,7 +73,7 @@ public class UploadController {
|
||||
}
|
||||
|
||||
if (StringUtils.isNotBlank(base64)) {
|
||||
// base64上传
|
||||
//base64上传
|
||||
file = Base64DecodeMultipartFile.base64Convert(base64);
|
||||
}
|
||||
String result = "";
|
||||
@@ -81,9 +81,9 @@ public class UploadController {
|
||||
File newFile = new File();
|
||||
try {
|
||||
InputStream inputStream = file.getInputStream();
|
||||
// 上传至第三方云服务或服务器
|
||||
//上传至第三方云服务或服务器
|
||||
result = fileManagerPlugin.inputStreamUpload(inputStream, fileKey);
|
||||
// 保存数据信息至数据库
|
||||
//保存数据信息至数据库
|
||||
newFile.setName(file.getOriginalFilename());
|
||||
newFile.setFileSize(file.getSize());
|
||||
newFile.setFileType(file.getContentType());
|
||||
|
||||
@@ -48,18 +48,18 @@ public class CommonSecurityConfig extends WebSecurityConfigurerAdapter {
|
||||
.authorizeRequests();
|
||||
registry
|
||||
.and()
|
||||
// 禁止网页iframe
|
||||
//禁止网页iframe
|
||||
.headers().frameOptions().disable()
|
||||
.and()
|
||||
.authorizeRequests()
|
||||
// 任何请求
|
||||
//任何请求
|
||||
.anyRequest()
|
||||
// 需要身份认证
|
||||
//需要身份认证
|
||||
.permitAll()
|
||||
.and()
|
||||
// 允许跨域
|
||||
//允许跨域
|
||||
.cors().configurationSource(corsConfigurationSource).and()
|
||||
// 关闭跨站请求防护
|
||||
//关闭跨站请求防护
|
||||
.csrf().disable();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user