🐛 修复获取参数时,可能出现的并发修改异常 BUG

This commit is contained in:
zhaojun1998
2019-12-08 13:34:10 +08:00
parent 0200483e22
commit 94290af50c

View File

@@ -19,7 +19,7 @@ public class SystemService {
* 构建指定路径下标题, 页头, 页尾
* @param path 路径
*/
public SiteConfigDTO getConfig(String path) throws Exception {
public synchronized SiteConfigDTO getConfig(String path) throws Exception {
SiteConfigDTO siteConfigDTO = new SiteConfigDTO();
FileService fileService = systemConfigService.getCurrentFileService();