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 03d516c commit c2f7f09
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/main/java/io/jboot/config/JbootConfigController.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/**
* Copyright (c) 2015-2017, Michael Yang 杨福海 ([email protected]).
* <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. "));
}
}
24 changes: 24 additions & 0 deletions src/main/java/io/jboot/config/JbootConfigManager.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/**
* Copyright (c) 2015-2017, Michael Yang 杨福海 ([email protected]).
* <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;

/**
* 配置管理类
* <p>
* 用于读取配置信息,包括本地配置信息和分布式远程配置信息
*/
public class JbootConfigManager {
}

0 comments on commit c2f7f09

Please sign in to comment.