大文件上传下载功能
This commit is contained in:
@ -0,0 +1,22 @@
|
|||||||
|
package com.coscoshipping.ebtp.system.updownload.config;
|
||||||
|
|
||||||
|
import cn.hutool.crypto.SecureUtil;
|
||||||
|
import cn.hutool.crypto.symmetric.DES;
|
||||||
|
import com.coscoshipping.ebtp.system.updownload.common.Constant;
|
||||||
|
import org.springframework.context.annotation.Bean;
|
||||||
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
||||||
|
@Configuration
|
||||||
|
public class DigitalSecurityConfiguration {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DES 加解密工具
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Bean
|
||||||
|
public DES des() {
|
||||||
|
return SecureUtil.des(Constant.SECRETE.getBytes());
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Reference in New Issue
Block a user