mirror of
https://github.com/201206030/novel.git
synced 2025-04-27 07:30:50 +00:00
update
This commit is contained in:
parent
3de7167727
commit
04224c0abd
@ -88,11 +88,6 @@
|
||||
<version>4.5.6</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>commons-configuration</groupId>
|
||||
<artifactId>commons-configuration</artifactId>
|
||||
<version>1.10</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
@ -105,6 +100,7 @@
|
||||
<version>1.4</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
@ -3,7 +3,6 @@ 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;
|
||||
@ -30,9 +29,6 @@ public class StartListener implements ApplicationListener<ContextRefreshedEvent>
|
||||
@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(() -> {
|
||||
|
@ -1,6 +1,3 @@
|
||||
website:
|
||||
name: 笔趣阁新书门
|
||||
|
||||
server:
|
||||
port: 8080
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user