Skip to content

Commit

Permalink
add config manager component in jboot
Browse files Browse the repository at this point in the history
  • Loading branch information
yangfuhai committed Aug 23, 2017
1 parent c2f7f09 commit b94ff56
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion src/main/java/io/jboot/config/JbootConfigController.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package io.jboot.config;

import com.jfinal.aop.Clear;
import com.jfinal.core.paragetter.Para;
import com.jfinal.kit.Ret;
import io.jboot.web.controller.JbootController;
import io.jboot.web.controller.annotation.RequestMapping;
Expand All @@ -27,7 +28,26 @@
@RequestMapping("/jboot/config")
public class JbootConfigController extends JbootController {

public void index() {
public void index(@Para(value = "propertie", defaultValue = "jboot.properties") String propertie, String prefix) {

renderJson(Ret.fail("msg", "sorry, you have no permission to visit this page. "));
}


/**
* 列出本地目录下的文件信息
*/
public void list() {
renderJson(Ret.fail("msg", "sorry, you have no permission to visit this page. "));

// File classPathDir = new File(PathKit.getRootClassPath());
// String[] names = classPathDir.list(new FilenameFilter() {
// @Override
// public boolean accept(File dir, String name) {
// return name.endsWith(".properties");
// }
// });
//
// renderJson(Arrays.toString(names));
}
}

0 comments on commit b94ff56

Please sign in to comment.