更新代码

This commit is contained in:
xuthus 2021-12-23 11:17:22 +08:00
parent 2b88fbe48f
commit 4d097df620
2 changed files with 21 additions and 1 deletions

View File

@ -17,6 +17,6 @@ public class OhMyEmailConfig {
public void before() { public void before() {
// 配置一次即可 // 配置一次即可
OhMyEmail.config(OhMyEmail.SMTP_QQ(false), "913651466@qq.com", "xgz187415157"); OhMyEmail.config(OhMyEmail.SMTP_QQ(false), "913651466@qq.com", "");
} }
} }

View File

@ -0,0 +1,20 @@
package cn.xuthus83.wx_post.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
/**
* 通用配置
*
* @author ruoyi
*/
@Configuration
public class ResourcesConfig implements WebMvcConfigurer {
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
/** 本地文件上传路径 */
registry.addResourceHandler("profile/**").addResourceLocations("file:/mnts/");
}
}