/**
 * Copyright (c) 2015-2017, Michael Yang 杨福海 (fuhai999@gmail.com).
 * <p>
 * Licensed under the GNU Lesser General Public License (LGPL) ,Version 3.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.gnu.org/licenses/lgpl-3.0.txt
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package io.jboot.config;

import com.jfinal.aop.Clear;
import com.jfinal.kit.Ret;
import io.jboot.web.controller.JbootController;
import io.jboot.web.controller.annotation.RequestMapping;

/**
 * 配置文件的Controller，用于给其他应用提供分布式配置读取功能
 */
@Clear
@RequestMapping("/jboot/config")
public class JbootConfigController extends JbootController {

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

@@ -713,16 +713,56 @@
 .Clear;%0A
+import com.jfinal.core.paragetter.Para;%0A
 import c
@@ -780,16 +780,16 @@
 it.Ret;%0A
-
 import i
@@ -1061,100 +1061,711 @@
 dex(
-) %7B%0A        renderJson(Ret.fail(%22msg%22, %22sorry,  you have no permission to visit this page. %22
+@Para(value = %22propertie%22, defaultValue = %22jboot.properties%22) String propertie, String prefix) %7B%0A%0A        renderJson(Ret.fail(%22msg%22, %22sorry,  you have no permission to visit this page. %22));%0A    %7D%0A%0A%0A    /**%0A     * %E5%88%97%E5%87%BA%E6%9C%AC%E5%9C%B0%E7%9B%AE%E5%BD%95%E4%B8%8B%E7%9A%84%E6%96%87%E4%BB%B6%E4%BF%A1%E6%81%AF%0A     */%0A    public void list() %7B%0A        renderJson(Ret.fail(%22msg%22, %22sorry,  you have no permission to visit this page. %22));%0A%0A//        File classPathDir = new File(PathKit.getRootClassPath());%0A//        String%5B%5D names = classPathDir.list(new FilenameFilter() %7B%0A//            @Override%0A//            public boolean accept(File dir, String name) %7B%0A//                return name.endsWith(%22.properties%22);%0A//            %7D%0A//        %7D);%0A//%0A//        renderJson(Arrays.toString(names
 ));%0A

add config manager component in jboot