开发指南测试
This commit is contained in:
parent
80260a9fa0
commit
eeb9627347
|
@ -46,6 +46,8 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
|
||||||
|
|
||||||
@Value("${resource.devModelFilePath}")
|
@Value("${resource.devModelFilePath}")
|
||||||
private String delModelFilePath;
|
private String delModelFilePath;
|
||||||
|
@Value("${resource.root_url}")
|
||||||
|
private String root_url;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ResourceDao resourceDao;
|
private ResourceDao resourceDao;
|
||||||
|
@ -187,7 +189,7 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
|
||||||
//String type = request.getParameter("type").toString();
|
//String type = request.getParameter("type").toString();
|
||||||
//Long resourceId = Long.parseLong(request.getParameter("resourceId"));
|
//Long resourceId = Long.parseLong(request.getParameter("resourceId"));
|
||||||
//String url = type + "/devModelFile.txt";
|
//String url = type + "/devModelFile.txt";
|
||||||
String url = delModelFilePath + "devModelFile.md";
|
String url = delModelFilePath + File.separator + "devModelFile.md";
|
||||||
File file = new File(url);
|
File file = new File(url);
|
||||||
if (!file.exists()) {
|
if (!file.exists()) {
|
||||||
Exception e = new Exception("文件不存在");
|
Exception e = new Exception("文件不存在");
|
||||||
|
|
Loading…
Reference in New Issue