diff --git a/novel-front/pom.xml b/novel-front/pom.xml
index 5ed9a77..4529a3b 100644
--- a/novel-front/pom.xml
+++ b/novel-front/pom.xml
@@ -88,6 +88,12 @@
4.5.6
+
+ commons-configuration
+ commons-configuration
+ 1.10
+
+
org.springframework.boot
spring-boot-starter-mail
diff --git a/novel-front/src/main/java/xyz/zinglizingli/books/core/listener/StartListener.java b/novel-front/src/main/java/xyz/zinglizingli/books/core/listener/StartListener.java
index fc0d867..70a1c48 100644
--- a/novel-front/src/main/java/xyz/zinglizingli/books/core/listener/StartListener.java
+++ b/novel-front/src/main/java/xyz/zinglizingli/books/core/listener/StartListener.java
@@ -1,7 +1,9 @@
package xyz.zinglizingli.books.core.listener;
import lombok.RequiredArgsConstructor;
+import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
+import org.apache.commons.configuration.PropertiesConfiguration;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
@@ -22,8 +24,15 @@ public class StartListener implements ApplicationListener
@Value("${crawl.book.new.enabled}")
private String crawlEnable;
+ @Value("${website.name}")
+ private String webSiteName;
+
+ @SneakyThrows
@Override
public void onApplicationEvent(ContextRefreshedEvent event) {
+ PropertiesConfiguration conf = new PropertiesConfiguration("messages.properties");
+ conf.setProperty("website.name", webSiteName);
+ conf.save();
if (!Constants.ENABLE_NEW_BOOK.equals(crawlEnable.trim())) {
log.info("程序启动");
new Thread(() -> {
diff --git a/novel-front/src/main/resources/application.yml b/novel-front/src/main/resources/application.yml
index 71c8a2d..eef66ae 100644
--- a/novel-front/src/main/resources/application.yml
+++ b/novel-front/src/main/resources/application.yml
@@ -1,3 +1,6 @@
+website:
+ name: 笔趣阁新书门
+
server:
port: 8080
diff --git a/novel-front/src/main/resources/templates/common/footer.html b/novel-front/src/main/resources/templates/common/footer.html
index c69cf7c..03c9300 100644
--- a/novel-front/src/main/resources/templates/common/footer.html
+++ b/novel-front/src/main/resources/templates/common/footer.html
@@ -10,10 +10,4 @@
-
\ No newline at end of file