Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-notifycenter
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 18a64b91
authored
Feb 21, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
通知服务
1 parent
0ddcf6f4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
pom.xml
src/main/resources/bootstrap.properties
src/test/java/cn/com/glsx/test/NotifyApplicationTests.java
pom.xml
View file @
18a64b9
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<packaging>
war
</packaging>
<packaging>
war
</packaging>
<artifactId>
glsx-
ne-shield-notifycenter
</artifactId>
<artifactId>
ne-shield-notifycenter
</artifactId>
<dependencies>
<dependencies>
<dependency>
<dependency>
...
...
src/main/resources/bootstrap.properties
View file @
18a64b9
#项目名称
#项目名称
spring.application.name
=
glsx-
ne-shield-notifycenter
spring.application.name
=
ne-shield-notifycenter
#日志路径(logback-spring.xml读取,不要加入配置中心)
#日志路径(logback-spring.xml读取,不要加入配置中心)
logging.path
=
/data/java_log/jetty/${spring.application.name}/${spring.application.name}.log
logging.path
=
/data/java_log/jetty/${spring.application.name}/${spring.application.name}.log
...
...
src/test/java/cn/com/glsx/test/NotifyApplicationTests.java
View file @
18a64b9
...
@@ -55,7 +55,7 @@ public class NotifyApplicationTests {
...
@@ -55,7 +55,7 @@ public class NotifyApplicationTests {
List
<
Map
<
String
,
String
>>
filepaths
=
Lists
.
newArrayList
();
List
<
Map
<
String
,
String
>>
filepaths
=
Lists
.
newArrayList
();
Map
<
String
,
String
>
girl1
=
Maps
.
newHashMap
();
Map
<
String
,
String
>
girl1
=
Maps
.
newHashMap
();
girl1
.
put
(
"filename"
,
"girl1.jpg"
);
girl1
.
put
(
"filename"
,
"girl1.jpg"
);
girl1
.
put
(
"filepath"
,
"https://pic.netbian.com/uploads/allimg/2
20215/004859-1644857339de97
.jpg"
);
girl1
.
put
(
"filepath"
,
"https://pic.netbian.com/uploads/allimg/2
11115/232008-1636989608f1ca
.jpg"
);
filepaths
.
add
(
girl1
);
filepaths
.
add
(
girl1
);
mailService
.
sendAttachmentsMail
(
"levphon@vip.qq.com"
,
"notifycenter test"
+
DateUtils
.
format
(
new
Date
()),
"MAIL_TEMPLATE_ORDER_PAID_NOTIFY_OPERATOR"
,
filepaths
);
mailService
.
sendAttachmentsMail
(
"levphon@vip.qq.com"
,
"notifycenter test"
+
DateUtils
.
format
(
new
Date
()),
"MAIL_TEMPLATE_ORDER_PAID_NOTIFY_OPERATOR"
,
filepaths
);
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment