|
@@ -7,7 +7,7 @@
|
|
|
|
|
|
package cn.com.qmth.examcloud.core.print.common.upyun;
|
|
package cn.com.qmth.examcloud.core.print.common.upyun;
|
|
|
|
|
|
-import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
|
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.io.Serializable;
|
|
import java.io.Serializable;
|
|
@@ -19,14 +19,24 @@ import java.io.Serializable;
|
|
* @since: 2018/11/1
|
|
* @since: 2018/11/1
|
|
*/
|
|
*/
|
|
@Component
|
|
@Component
|
|
-@ConfigurationProperties(prefix = "$upyun.site.1", ignoreUnknownFields = false)
|
|
|
|
public class UpYunProperty implements Serializable {
|
|
public class UpYunProperty implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
+ @Value("${$upyun.site.1.userName}")
|
|
private String userName;//账号
|
|
private String userName;//账号
|
|
|
|
+
|
|
|
|
+ @Value("${$encrypted.$upyun.site.1.password}")
|
|
private String password;//密码
|
|
private String password;//密码
|
|
|
|
+
|
|
|
|
+ @Value("${$upyun.site.1.bucketName}")
|
|
private String bucketName;//存储空间名称
|
|
private String bucketName;//存储空间名称
|
|
|
|
+
|
|
|
|
+ @Value("${$upyun.site.1.bucketUrl}")
|
|
private String bucketUrl;//存储空间访问前缀
|
|
private String bucketUrl;//存储空间访问前缀
|
|
|
|
+
|
|
|
|
+ @Value("${$upyun.site.1.fileUrl}")
|
|
private String fileUrl;//文件访问地址前缀
|
|
private String fileUrl;//文件访问地址前缀
|
|
|
|
+
|
|
|
|
+ @Value("${$upyun.site.1.uploadUrl}")
|
|
private String uploadUrl;//文件存放目录
|
|
private String uploadUrl;//文件存放目录
|
|
|
|
|
|
public String getUserName() {
|
|
public String getUserName() {
|