mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -5,7 +5,7 @@ import cn.hutool.setting.Setting;
|
||||
|
||||
/**
|
||||
* 全局的Profile配置中心
|
||||
*
|
||||
*
|
||||
* @author Looly
|
||||
*
|
||||
*/
|
||||
|
@@ -19,7 +19,7 @@ import java.util.concurrent.ConcurrentHashMap;
|
||||
* <li>develop =》 ${classpath}/develop/db.setting</li>
|
||||
* <li>production =》 ${classpath}/production/db.setting</li>
|
||||
* </ol>
|
||||
*
|
||||
*
|
||||
* @author Looly
|
||||
*
|
||||
*/
|
||||
@@ -48,7 +48,7 @@ public class Profile implements Serializable {
|
||||
|
||||
/**
|
||||
* 构造,编码UTF-8,不使用变量
|
||||
*
|
||||
*
|
||||
* @param profile 环境
|
||||
*/
|
||||
public Profile(String profile) {
|
||||
@@ -57,7 +57,7 @@ public class Profile implements Serializable {
|
||||
|
||||
/**
|
||||
* 构造
|
||||
*
|
||||
*
|
||||
* @param profile 环境
|
||||
* @param charset 编码
|
||||
* @param useVar 是否使用变量
|
||||
@@ -71,7 +71,7 @@ public class Profile implements Serializable {
|
||||
|
||||
/**
|
||||
* 获取当前环境下的配置文件
|
||||
*
|
||||
*
|
||||
* @param name 文件名,如果没有扩展名,默认为.setting
|
||||
* @return 当前环境下配置文件
|
||||
*/
|
||||
@@ -87,7 +87,7 @@ public class Profile implements Serializable {
|
||||
|
||||
/**
|
||||
* 设置环境
|
||||
*
|
||||
*
|
||||
* @param profile 环境
|
||||
* @return 自身
|
||||
*/
|
||||
@@ -98,7 +98,7 @@ public class Profile implements Serializable {
|
||||
|
||||
/**
|
||||
* 设置编码
|
||||
*
|
||||
*
|
||||
* @param charset 编码
|
||||
* @return 自身
|
||||
*/
|
||||
@@ -109,7 +109,7 @@ public class Profile implements Serializable {
|
||||
|
||||
/**
|
||||
* 设置是否使用变量
|
||||
*
|
||||
*
|
||||
* @param useVar 变量
|
||||
* @return 自身
|
||||
*/
|
||||
@@ -120,7 +120,7 @@ public class Profile implements Serializable {
|
||||
|
||||
/**
|
||||
* 清空所有环境的配置文件
|
||||
*
|
||||
*
|
||||
* @return 自身
|
||||
*/
|
||||
public Profile clear() {
|
||||
@@ -131,7 +131,7 @@ public class Profile implements Serializable {
|
||||
// -------------------------------------------------------------------------------- Private method start
|
||||
/**
|
||||
* 修正文件名
|
||||
*
|
||||
*
|
||||
* @param name 文件名
|
||||
* @return 修正后的文件名
|
||||
*/
|
||||
|
Reference in New Issue
Block a user