更新代码
This commit is contained in:
parent
2b88fbe48f
commit
4d097df620
@ -17,6 +17,6 @@ public class OhMyEmailConfig {
|
||||
|
||||
public void before() {
|
||||
// 配置,一次即可
|
||||
OhMyEmail.config(OhMyEmail.SMTP_QQ(false), "913651466@qq.com", "xgz187415157");
|
||||
OhMyEmail.config(OhMyEmail.SMTP_QQ(false), "913651466@qq.com", "");
|
||||
}
|
||||
}
|
||||
|
@ -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/");
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user