소스 검색

fxi 修改配置文件中包名称

fengxiaolei 2 년 전
부모
커밋
a5ca6d2705

+ 13 - 13
product-center-manage-admin/src/main/resources/application.yml

@@ -1,7 +1,7 @@
 # 项目相关配置
-ruoyi:
+product-center-manage:
   # 名称
-  name: RuoYi
+  name: product-center-manage
   # 版本
   version: 4.7.5
   # 版权年份
@@ -9,14 +9,14 @@ ruoyi:
   # 实例演示开关
   demoEnabled: true
   # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
-  profile: D:/ruoyi/uploadPath
+  profile: D:/product-center-manage/uploadPath
   # 获取ip地址开关
   addressEnabled: false
 
 # 开发环境配置
 server:
   # 服务器的HTTP端口,默认为80
-  port: 80
+  port: 8080
   servlet:
     # 应用的访问路径
     context-path: /
@@ -30,11 +30,11 @@ server:
       max: 800
       # Tomcat启动初始化的线程数,默认值10
       min-spare: 100
- 
+
 # 日志配置
 logging:
   level:
-    com.ruoyi: debug
+    com.product.center.manage: debug
     org.springframework: warn
 
 # 用户配置
@@ -58,7 +58,7 @@ spring:
   jackson:
     time-zone: GMT+8
     date-format: yyyy-MM-dd HH:mm:ss
-  profiles: 
+  profiles:
     active: druid
   # 文件上传
   servlet:
@@ -76,17 +76,17 @@ spring:
 # MyBatis
 mybatis:
     # 搜索指定包别名
-    typeAliasesPackage: com.ruoyi.**.domain
+    typeAliasesPackage: com.product.center.manage.**.domain
     # 配置mapper的扫描,找到所有的mapper.xml映射文件
     mapperLocations: classpath*:mapper/**/*Mapper.xml
     # 加载全局的配置文件
     configLocation: classpath:mybatis/mybatis-config.xml
 
 # PageHelper分页插件
-pagehelper: 
+pagehelper:
   helperDialect: mysql
   supportMethodsArguments: true
-  params: count=countSql 
+  params: count=countSql
 
 # Shiro
 shiro:
@@ -103,7 +103,7 @@ shiro:
     captchaType: math
   cookie:
     # 设置Cookie的域名 默认空,即当前访问的域名
-    domain: 
+    domain:
     # 设置cookie的有效访问路径
     path: /
     # 设置HttpOnly属性
@@ -111,7 +111,7 @@ shiro:
     # 设置Cookie的过期时间,天为单位
     maxAge: 30
     # 设置密钥,务必保持唯一性(生成方式,直接拷贝到main运行即可)Base64.encodeToString(CipherUtils.generateNewKey(128, "AES").getEncoded()) (默认启动生成随机秘钥,随机秘钥会导致之前客户端RememberMe Cookie无效,如设置固定秘钥RememberMe Cookie则有效)
-    cipherKey: 
+    cipherKey:
   session:
     # Session超时时间,-1代表永不过期(默认30分钟)
     expireTime: 30
@@ -128,7 +128,7 @@ shiro:
     enabled: true
 
 # 防止XSS攻击
-xss: 
+xss:
   # 过滤开关
   enabled: true
   # 排除链接(多个用逗号分隔)

+ 8 - 8
product-center-manage-admin/src/main/resources/logback.xml

@@ -11,7 +11,7 @@
 			<pattern>${log.pattern}</pattern>
 		</encoder>
 	</appender>
-	
+
 	<!-- 系统日志输出 -->
 	<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
 	    <file>${log.path}/sys-info.log</file>
@@ -34,7 +34,7 @@
             <onMismatch>DENY</onMismatch>
         </filter>
 	</appender>
-	
+
 	<appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender">
 	    <file>${log.path}/sys-error.log</file>
         <!-- 循环政策:基于时间创建日志文件 -->
@@ -56,7 +56,7 @@
             <onMismatch>DENY</onMismatch>
         </filter>
     </appender>
-	
+
 	<!-- 用户访问日志输出  -->
     <appender name="sys-user" class="ch.qos.logback.core.rolling.RollingFileAppender">
 		<file>${log.path}/sys-user.log</file>
@@ -70,24 +70,24 @@
             <pattern>${log.pattern}</pattern>
         </encoder>
     </appender>
-	
+
 	<!-- 系统模块日志级别控制  -->
-	<logger name="com.ruoyi" level="info" />
+	<logger name="com.product.center.manage" level="info" />
 	<!-- Spring日志级别控制  -->
 	<logger name="org.springframework" level="warn" />
 
 	<root level="info">
 		<appender-ref ref="console" />
 	</root>
-	
+
 	<!--系统操作日志-->
     <root level="info">
         <appender-ref ref="file_info" />
         <appender-ref ref="file_error" />
     </root>
-	
+
 	<!--系统用户操作日志-->
     <logger name="sys-user" level="info">
         <appender-ref ref="sys-user"/>
     </logger>
-</configuration> 
+</configuration>

+ 1 - 1
product-center-manage-common/src/main/java/com/product/center/manage/common/config/RuoYiConfig.java

@@ -9,7 +9,7 @@ import org.springframework.stereotype.Component;
  * @author ruoyi
  */
 @Component
-@ConfigurationProperties(prefix = "ruoyi")
+@ConfigurationProperties(prefix = "product-center-manage")
 public class RuoYiConfig
 {
     /** 项目名称 */

+ 2 - 2
product-center-manage-common/src/main/java/com/product/center/manage/common/constant/Constants.java

@@ -105,11 +105,11 @@ public class Constants
     /**
      * 定时任务白名单配置(仅允许访问的包名,如其他需要可以自行添加)
      */
-    public static final String[] JOB_WHITELIST_STR = { "com.ruoyi" };
+    public static final String[] JOB_WHITELIST_STR = { "com.product.center.manage" };
 
     /**
      * 定时任务违规的字符
      */
     public static final String[] JOB_ERROR_STR = { "java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml",
-            "org.springframework", "org.apache", "com.ruoyi.common.utils.file" };
+            "org.springframework", "org.apache", "com.product.center.manage.common.utils.file" };
 }

+ 1 - 1
product-center-manage-framework/src/main/java/com/product/center/manage/framework/config/ApplicationConfig.java

@@ -13,7 +13,7 @@ import org.springframework.context.annotation.EnableAspectJAutoProxy;
 // 表示通过aop框架暴露该代理对象,AopContext能够访问
 @EnableAspectJAutoProxy(exposeProxy = true)
 // 指定要扫描的Mapper类的包的路径
-@MapperScan("com.ruoyi.**.mapper")
+@MapperScan("com.product.center.manage.**.mapper")
 public class ApplicationConfig
 {
 

+ 1 - 1
product-center-manage-framework/src/main/java/com/product/center/manage/framework/config/CaptchaConfig.java

@@ -63,7 +63,7 @@ public class CaptchaConfig
         // KAPTCHA_SESSION_KEY
         properties.setProperty(KAPTCHA_SESSION_CONFIG_KEY, "kaptchaCodeMath");
         // 验证码文本生成器
-        properties.setProperty(KAPTCHA_TEXTPRODUCER_IMPL, "com.ruoyi.framework.config.KaptchaTextCreator");
+        properties.setProperty(KAPTCHA_TEXTPRODUCER_IMPL, "com.product.center.manage.framework.config.KaptchaTextCreator");
         // 验证码文本字符间距 默认为2
         properties.setProperty(KAPTCHA_TEXTPRODUCER_CHAR_SPACE, "3");
         // 验证码文本字符长度 默认为5

+ 3 - 3
product-center-manage-generator/src/main/resources/generator.yml

@@ -1,11 +1,11 @@
 
 # 代码生成
-gen: 
+gen:
   # 作者
   author: ruoyi
   # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool
-  packageName: com.ruoyi.system
+  packageName: com.product.center.manage.system
   # 自动去除表前缀,默认是false
   autoRemovePre: false
   # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)
-  tablePrefix: sys_
+  tablePrefix: sys_

+ 19 - 19
product-center-manage-generator/src/main/resources/templates/tool/gen/edit.html

@@ -74,14 +74,14 @@
 				                </div>
 				            </div>
                             </div>
-                            
+
                             <!-- 字段信息 -->
                             <div class="tab-pane active" id="tab-field">
                                 <div class="select-table table-striped" style="margin-top: 0px;padding-top: 0px;padding-bottom: 0px;">
 								    <table id="bootstrap-table" data-use-row-attr-func="true" data-reorderable-rows="true"></table>
 								</div>
                             </div>
-                            
+
                             <!-- 生成信息 -->
                             <div class="tab-pane" id="tab-gen">
 					            <div class="row mt20">
@@ -99,7 +99,7 @@
 					                </div>
 					                <div class="col-sm-6">
 					                    <div class="form-group">
-					                        <label class="col-sm-4 control-label is-required" title="生成在哪个java包下,例如 com.ruoyi.project.system">生成包路径:<i class="fa fa-question-circle-o"></i></label>
+					                        <label class="col-sm-4 control-label is-required" title="生成在哪个java包下,例如 com.product.center.manage.project.system">生成包路径:<i class="fa fa-question-circle-o"></i></label>
 					                        <div class="col-sm-8">
 					                            <input name="packageName" class="form-control" type="text" placeholder="请输入生成包路径" maxlength="100" th:field="*{packageName}" required>
 					                        </div>
@@ -151,8 +151,8 @@
 					                    <div class="form-group">
 					                        <label class="col-sm-4 control-label" title="默认为zip压缩包下载,也可以自定义生成路径">生成代码方式:<i class="fa fa-question-circle-o"></i></label>
 					                        <div class="col-sm-8">
-                                                <label class="radio-box"> <input type="radio" name="genType" value="0" th:field="*{genType}" /> zip压缩包 </label> 
-                                                <label class="radio-box"> <input type="radio" name="genType" value="1" th:field="*{genType}" /> 自定义路径</label> 
+                                                <label class="radio-box"> <input type="radio" name="genType" value="0" th:field="*{genType}" /> zip压缩包 </label>
+                                                <label class="radio-box"> <input type="radio" name="genType" value="1" th:field="*{genType}" /> 自定义路径</label>
 					                        </div>
 					                    </div>
 					                </div>
@@ -270,7 +270,7 @@
 	    	},
 			focusCleanup: true
 		});
-	    
+
 	    /* 表级联信息 */
    		var data = [[${data}]];
     	$('#subInfo').cxSelect({
@@ -278,13 +278,13 @@
     	  jsonValue: 'v',
     	  data: data
     	});
-	    
+
 	    function submitHandler() {
 	        if ($.validate.form()) {
 	        	$.operate.saveTab(prefix + "/edit", $("#form-gen-edit").serializeArray());
 	        }
 	    }
-	    
+
 	    var prefix = ctx + "tool/gen";
 		$(function() {
 		    var options = {
@@ -442,7 +442,7 @@
 		    };
 		    $.table.init(options);
 		});
-		
+
 		// 当所有数据被加载时触发处理函数
 		function onLoadSuccess(data){
 			$.fn.select2.defaults.set( "theme", "bootstrap" );
@@ -457,26 +457,26 @@
             	})
         	})
         }
-		
+
 		// 当拖拽结束后处理函数
 		function onReorderRow(data) {
 	        for (var i = 0; i < data.length; i++) {
 			    $("#columns_sort_" + data[i].columnId).val(i+1);
 			}
        }
-		
+
 		$(function() {
             var tplCategory = $("#tplCategory option:selected").val();
             tplCategoryVisible(tplCategory);
             var genType = $('input[name="genType"]:checked').val();
             pathInfoVisible(genType);
         });
-		
+
 		$('#tplCategory').on('select2:select', function (event) {
 			var tplCategory = $(event.target).val();
 			tplCategoryVisible(tplCategory);
 		});
-		
+
 		function tplCategoryVisible(tplCategory) {
 			if("crud" == tplCategory){
 				$("#treeCode").select2("val", [""]);
@@ -500,12 +500,12 @@
 				$("#otherInfo").addClass("hidden");
 			}
         }
-		
+
 		$('input').on('ifChecked', function(event){
 			var genType = $(event.target).val();
 			pathInfoVisible(genType);
 		});
-		
+
 		function pathInfoVisible(genType) {
 			if("0" == genType){
 				$("#genPath").val("/");
@@ -514,7 +514,7 @@
 				$("#pathinfo").removeClass("hidden");
 			}
 		}
-		
+
 		// 选择字典处理函数
 		function selectDictTree(columnId, obj) {
 			var dictType = $.common.nullToStr($(obj).parent().find("input").val());
@@ -527,7 +527,7 @@
 			};
 			$.modal.openOptions(options);
 		}
-		
+
 		// 选择菜单处理函数
         function selectMenuTree() {
         	var parentMenuId = $("#parentMenuId").val();
@@ -541,7 +541,7 @@
 			};
 			$.modal.openOptions(options);
 		}
-		
+
 		function doDictSubmit(index, layero){
 			var body = $.modal.getChildFrame(index);
    			var columnId = body.find('#columnId').val();
@@ -549,7 +549,7 @@
    			$.modal.close(index);
    			$("#columns_dict_" + columnId).val(dictType);
 		}
-		
+
 		function doMenuSubmit(index, layero){
 			var body = $.modal.getChildFrame(index);
    			$("#parentMenuId").val(body.find('#treeId').val());