1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
| package com.moral.api.config.emile;
|
| import org.springframework.context.annotation.Configuration;
|
| import javax.annotation.PostConstruct;
|
| /**
| * @ClassName EmailToLongConfig
| * @Description TODO
| * @Author @cjl
| * @Date 2024-01-24 14:58
| * @Version 1.0
| */
| @Configuration
| public class EmailToLongConfig {
| @PostConstruct
| private void init(){
| // 解决邮件附件名称太长会自动截取,导致附件变成.bin格式问题
| System.setProperty("mail.mime.splitlongparameters","false");
| }
| }
|
|