-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add config manager component in jboot
- Loading branch information
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. ")); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
} |