deason 6 年之前
父节点
当前提交
e4fb42d4db

+ 1 - 1
examcloud-core-print-common/src/main/java/cn/com/qmth/examcloud/core/print/common/upyun/UpYunProperty.java

@@ -24,7 +24,7 @@ public class UpYunProperty implements Serializable {
     @Value("${$upyun.site.1.userName}")
     private String userName;//账号
 
-    @Value("${$encrypted.$upyun.site.1.password}")
+    @Value("${$upyun.site.1.password}")
     private String password;//密码
 
     @Value("${$upyun.site.1.bucketName}")

+ 0 - 32
examcloud-core-print-starter/src/main/java/cn/com/qmth/examcloud/core/print/config/PropertiesConfig.java

@@ -1,32 +0,0 @@
-/*
- * *************************************************
- * Copyright (c) 2018 QMTH. All Rights Reserved.
- * Created by Deason on 2018-10-17 16:34:17.
- * *************************************************
- */
-
-package cn.com.qmth.examcloud.core.print.config;
-
-import cn.com.qmth.examcloud.commons.util.PathUtil;
-import cn.com.qmth.examcloud.commons.util.PropertiesUtil;
-import org.springframework.beans.factory.annotation.Value;
-import org.springframework.context.ApplicationListener;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.context.event.ContextRefreshedEvent;
-
-/**
- * @author: fengdesheng
- * @since: 2018/10/17
- */
-@Configuration
-public class PropertiesConfig implements ApplicationListener<ContextRefreshedEvent> {
-    @Value("${spring.profiles.active}")
-    private String springProfilesActive;
-
-    @Override
-    public void onApplicationEvent(ContextRefreshedEvent event) {
-        String resourceName = "application-" + springProfilesActive + ".properties";
-        PropertiesUtil.configure(PathUtil.getResoucePath(resourceName));
-    }
-
-}