guoenzhou 1 year ago
parent
commit
a220bc7fb2

+ 5 - 0
base-modules/service-system/service-system-biz/pom.xml

@@ -48,6 +48,11 @@
             <artifactId>ruoyi-common-swagger</artifactId>
         </dependency>
 
+        <dependency>
+            <groupId>com.appleyk</groupId>
+            <artifactId>license-verify-spring-boot-starter</artifactId>
+            <version>1.0-SNAPSHOT</version>
+        </dependency>
     </dependencies>
 
     <build>

+ 2 - 0
base-modules/service-system/service-system-biz/src/main/java/com/usky/system/RuoYiSystemApplication.java

@@ -12,6 +12,7 @@ import org.springframework.context.ConfigurableApplicationContext;
 import org.springframework.context.annotation.ComponentScan;
 import org.springframework.context.annotation.EnableAspectJAutoProxy;
 import org.springframework.core.env.Environment;
+import org.springframework.scheduling.annotation.EnableScheduling;
 
 import java.net.InetAddress;
 import java.net.UnknownHostException;
@@ -23,6 +24,7 @@ import java.net.UnknownHostException;
  */
 
 @EnableCustomSwagger2
+@EnableScheduling
 @EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
 @EnableFeignClients(basePackages = {"com.usky"})
 @MapperScan(value = "com.usky.system.mapper")

+ 2 - 0
base-modules/service-system/service-system-biz/src/main/java/com/usky/system/controller/web/SysTenantConfigController.java

@@ -1,6 +1,7 @@
 package com.usky.system.controller.web;
 
 
+import com.appleyk.verify.annotion.VLicense;
 import com.usky.common.core.bean.ApiResult;
 import com.usky.common.core.bean.CommonPage;
 import com.usky.system.domain.SysMenu;
@@ -39,6 +40,7 @@ public class SysTenantConfigController {
      * @param url 域名
      * @return
      */
+    @VLicense
     @GetMapping("/getTenantConfig")
     public ApiResult<List<SysTenantConfigVo>> getTenantConfig(@RequestParam String url) {
         return ApiResult.success(sysTenantConfigService.getTenantConfig(url));

+ 0 - 15
base-modules/service-system/service-system-biz/src/main/resources/application-verify.properties

@@ -1,15 +0,0 @@
-
-#================License Verify 证书验证配置E===============#
-
-#证书主题
-springboot.license.verify.subject=landi
-#公钥库证书条目别名
-springboot.license.verify.publicAlias=publiccert
-#证书公钥库存储路径(公钥库可以公开出去,但是私有密钥库一定要自己保存好,即私有密钥库要保存在creator模块中)
-springboot.license.verify.publicKeysStorePath=/publicCerts.store
-#证书公钥库访问密码
-springboot.license.verify.storePass=123456a
-#证书存放路径
-springboot.license.verify.licensePath=classpath:license2.lic
-
-#================License Verify 证书验证配置E===============#

BIN
base-modules/service-system/service-system-biz/src/main/resources/license.lic