mirror of
https://github.com/201206030/novel-plus.git
synced 2025-04-26 17:20:52 +00:00
修改配置项命名
This commit is contained in:
parent
80b393fdda
commit
7f4728191a
@ -71,7 +71,7 @@ sharding:
|
||||
|
||||
|
||||
|
||||
txt:
|
||||
content:
|
||||
save:
|
||||
storage: db #存储介质,db:数据库,file:txt文本
|
||||
path: /Users/xiongxiaoyang/books #txt小说文本保存路径
|
@ -74,7 +74,7 @@ logging:
|
||||
|
||||
|
||||
|
||||
txt:
|
||||
content:
|
||||
save:
|
||||
storage: db #存储介质,db:数据库,file:txt文本
|
||||
path: /Users/xiongxiaoyang/books #txt小说文本保存路径
|
||||
|
@ -17,7 +17,7 @@ import static org.mybatis.dynamic.sql.SqlBuilder.update;
|
||||
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
@ConditionalOnProperty(prefix = "txt.save", name = "storage", havingValue = "db")
|
||||
@ConditionalOnProperty(prefix = "content.save", name = "storage", havingValue = "db")
|
||||
public class DbBookContentServiceImpl implements BookContentService {
|
||||
|
||||
private final BookContentMapper bookContentMapper;
|
||||
|
@ -12,10 +12,10 @@ import java.util.List;
|
||||
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
@ConditionalOnProperty(prefix = "txt.save", name = "storage", havingValue = "file")
|
||||
@ConditionalOnProperty(prefix = "content.save", name = "storage", havingValue = "file")
|
||||
public class FileBookContentServiceImpl implements BookContentService {
|
||||
|
||||
@Value("${txt.save.path}")
|
||||
@Value("${content.save.path}")
|
||||
private String fileSavePath;
|
||||
|
||||
@Override
|
||||
|
@ -34,7 +34,7 @@ import java.util.concurrent.ThreadPoolExecutor;
|
||||
@Controller
|
||||
public class PageController extends BaseController {
|
||||
|
||||
@Value("${txt.save.path}")
|
||||
@Value("${content.save.path}")
|
||||
private String fileSavePath;
|
||||
|
||||
private final BookService bookService;
|
||||
|
@ -20,7 +20,7 @@ import static org.mybatis.dynamic.sql.select.SelectDSL.select;
|
||||
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
@ConditionalOnProperty(prefix = "txt.save", name = "storage", havingValue = "db")
|
||||
@ConditionalOnProperty(prefix = "content.save", name = "storage", havingValue = "db")
|
||||
public class DbBookContentServiceImpl implements BookContentService {
|
||||
|
||||
private final BookContentMapper bookContentMapper;
|
||||
|
@ -15,10 +15,10 @@ import java.util.List;
|
||||
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
@ConditionalOnProperty(prefix = "txt.save", name = "storage", havingValue = "file")
|
||||
@ConditionalOnProperty(prefix = "content.save", name = "storage", havingValue = "file")
|
||||
public class FileBookContentServiceImpl implements BookContentService {
|
||||
|
||||
@Value("${txt.save.path}")
|
||||
@Value("${content.save.path}")
|
||||
private String fileSavePath;
|
||||
|
||||
@SneakyThrows
|
||||
|
Loading…
x
Reference in New Issue
Block a user