开发指南测试

This commit is contained in:
dinggang 2022-04-21 14:16:31 +08:00
parent 80260a9fa0
commit eeb9627347
1 changed files with 3 additions and 1 deletions

View File

@ -46,6 +46,8 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
@Value("${resource.devModelFilePath}")
private String delModelFilePath;
@Value("${resource.root_url}")
private String root_url;
@Autowired
private ResourceDao resourceDao;
@ -187,7 +189,7 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
//String type = request.getParameter("type").toString();
//Long resourceId = Long.parseLong(request.getParameter("resourceId"));
//String url = type + "/devModelFile.txt";
String url = delModelFilePath + "devModelFile.md";
String url = delModelFilePath + File.separator + "devModelFile.md";
File file = new File(url);
if (!file.exists()) {
Exception e = new Exception("文件不存在");