Skip to content

Commit

Permalink
refactor: 适配 ContiNew Starter Mail(消息模块)
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles7c committed Nov 26, 2023
1 parent 1311ae3 commit ce785dd
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 260 deletions.
25 changes: 13 additions & 12 deletions continew-admin-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
<artifactId>continew-starter-data-mybatis-plus</artifactId>
</dependency>

<!-- ContiNew Starter 消息模块 - 邮件 -->
<dependency>
<groupId>top.charles7c.continew</groupId>
<artifactId>continew-starter-messaging-mail</artifactId>
</dependency>

<!-- ContiNew Starter 验证码模块 - 图形验证码 -->
<dependency>
<groupId>top.charles7c.continew</groupId>
Expand All @@ -58,33 +64,28 @@
<artifactId>continew-starter-json-jackson</artifactId>
</dependency>

<!-- Java 邮件支持 -->
<!-- SMS4J(短信聚合框架,轻松集成多家短信服务,解决接入多个短信 SDK 的繁琐流程) -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
<groupId>org.dromara.sms4j</groupId>
<artifactId>sms4j-spring-boot-starter</artifactId>
</dependency>

<!-- FreeMarker(模板引擎) -->
<dependency>
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
</dependency>

<!-- Hibernate Validator -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>

<!-- MySQL Java 驱动 -->
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
</dependency>

<!-- SMS4J(短信聚合框架,轻松集成多家短信服务,解决接入多个短信 SDK 的繁琐流程) -->
<!-- Hibernate Validator -->
<dependency>
<groupId>org.dromara.sms4j</groupId>
<artifactId>sms4j-spring-boot-starter</artifactId>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
</dependencies>
</project>

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@
import top.charles7c.cnadmin.common.constant.RegexConstants;
import top.charles7c.cnadmin.common.model.resp.CaptchaResp;
import top.charles7c.cnadmin.common.model.resp.R;
import top.charles7c.cnadmin.common.util.MailUtils;
import top.charles7c.cnadmin.common.util.TemplateUtils;
import top.charles7c.cnadmin.common.util.validate.CheckUtils;
import top.charles7c.continew.starter.cache.redisson.util.RedisUtils;
import top.charles7c.continew.starter.captcha.graphic.autoconfigure.GraphicCaptchaProperties;
import top.charles7c.continew.starter.core.autoconfigure.project.ProjectProperties;
import top.charles7c.continew.starter.messaging.mail.util.MailUtils;

/**
* 验证码 API
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ spring.mail:
port: 465
username: 你的邮箱
password: 你的邮箱授权码
default-encoding: utf-8
properties:
mail:
smtp:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ spring.mail:
port: 465
username: 你的邮箱
password: 你的邮箱授权码
default-encoding: utf-8
properties:
mail:
smtp:
Expand Down

0 comments on commit ce785dd

Please sign in to comment.