|
|
@ -4,7 +4,6 @@ import java.io.File;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.boot.system.ApplicationHome;
|
|
|
|
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
@ -63,9 +62,7 @@ public class UserController extends cokr.xit.base.user.web.UserController<Manage
|
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
mav.setViewName("jsonView");
|
|
|
|
mav.setViewName("jsonView");
|
|
|
|
|
|
|
|
|
|
|
|
ApplicationHome ah = new ApplicationHome();
|
|
|
|
Node tree = DirectoryStructureToJson.getNode(new File("files"));
|
|
|
|
System.out.println(ah.getDir().getAbsolutePath());
|
|
|
|
|
|
|
|
Node tree = DirectoryStructureToJson.getNode(new File(ah.getDir().getAbsolutePath()+File.separator+"files"));
|
|
|
|
|
|
|
|
mav.addObject("tree", tree);
|
|
|
|
mav.addObject("tree", tree);
|
|
|
|
return mav;
|
|
|
|
return mav;
|
|
|
|
}
|
|
|
|
}
|
|
|
|