提交 4e5b0bcc authored 作者: javamaoyang's avatar javamaoyang

add

上级 d30171fd
流水线 #8626 已通过 于阶段
in 19 seconds
package com.example.controller;
import lombok.Data;
@Data
public class OSSConfigConstant {
public String env;
public String host;
public String keyId;
public String keySecret;
public String bucketName;
public String folder;
}
\ No newline at end of file
package com.example.util;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;
import com.example.controller.OSSConfigConstant;
import lombok.Data;
//@Configuration 标识这是一个配置类
@Component("configData") // 添加到bean容器时指定其名为 configData
@ConfigurationProperties(prefix = "projectMap") // 读取前缀为 data 的内容
//@ConfigurationProperties(prefix = "projectMap.jufeng")
@Data
public class DataConfig{
private List<OSSConfigConstant> ueditor = new ArrayList<OSSConfigConstant>();
public enum UriEnum {
mofang, dongq, panda,woyou,jufeng,youxing
}
}
\ No newline at end of file
projectMap.default=mofang
projectMap.ueditor[0].env=woyou
projectMap.ueditor[0].bucketName=woyou-pro
projectMap.ueditor[0].folder=woyou/
projectMap.ueditor[0].host=https://imgb.woyoubooking.com
projectMap.ueditor[0].keyId=LTAISxaXkVGKq7Ec
projectMap.ueditor[0].keySecret=CokBrGxVPQc9v0I9TXdbqqUfHX8YYJ
projectMap.ueditor[1].env=mofang
projectMap.ueditor[1].bucketName=mofang-pro
projectMap.ueditor[1].folder=erp/
projectMap.ueditor[1].host=https://imgb.mofangx.com
projectMap.ueditor[1].keyId=LTAIki0hQzKhpIqj
projectMap.ueditor[1].keySecret=Nf3kkjO8cr35mVsEUrgiihmr3FFTZk
projectMap.ueditor[2].env=panda
projectMap.ueditor[2].bucketName=bucket-panda
projectMap.ueditor[2].folder=test/
projectMap.ueditor[2].host=https://imgb.98panda.com
projectMap.ueditor[2].keyId=LTAIJ7SrAiTrrYXn
projectMap.ueditor[2].keySecret=kaZxBV9E9dkJVF6avIMoa8GPLLzFmF
projectMap.ueditor[3].env=dongqing
projectMap.ueditor[3].bucketName=dongq
projectMap.ueditor[3].folder=pro/
projectMap.ueditor[3].host=https://imgb.yeyotravel.com
projectMap.ueditor[3].keyId=LTAIowdw5AYNzOZE
projectMap.ueditor[3].keySecret=M5lqYM4DwRE19RCnFJUblNPt9I0aM8
projectMap.ueditor[4].env=youxing
projectMap.ueditor[4].bucketName=yx-pro
projectMap.ueditor[4].folder=mofang/
projectMap.ueditor[4].host=https://img.youxingnet.com
projectMap.ueditor[4].keyId=LTAIki0hQzKhpIqj
projectMap.ueditor[4].keySecret=Nf3kkjO8cr35mVsEUrgiihmr3FFTZk
projectMap.ueditor[5].env=jufeng
projectMap.ueditor[5].bucketName=ds-resources
projectMap.ueditor[5].folder=mofang/
projectMap.ueditor[5].host=https://res.m17go.com
projectMap.ueditor[5].keyId=LTAI4FuUhqeCYPqE34ZrTMaz
projectMap.ueditor[5].keySecret=KqyGDq53qsrbZrKsxZ1Myu6IPZGT2J
server.port=5555 server.port=5555
#web.upload-path=E:/
spring.mvc.static-path-pattern=/** spring.mvc.static-path-pattern=/**
spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path} spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}
#imageUrl=https://imgb.mofangx.com/
#oss.host=https://imgb.mofangx.com
#oss.keyId=LTAIki0hQzKhpIqj
#oss.keySecret=Nf3kkjO8cr35mVsEUrgiihmr3FFTZk
#oss.bucketName=mofang-pro
#oss.folder=erp/
imageUrl=https://imgb.woyoubooking.com/
oss.host=https://imgb.woyoubooking.com
oss.keyId=LTAISxaXkVGKq7Ec
oss.keySecret=CokBrGxVPQc9v0I9TXdbqqUfHX8YYJ
oss.bucketName=woyou-pro
oss.folder=woyou/
#etcd.server=http://etcd.mofang.cn:2379 spring.profiles.include=ueditor
\ No newline at end of file \ No newline at end of file
#窝友配置
projectMap.woyou.oss.host=https://imgb.woyoubooking.com
projectMap.woyou.oss.keyId=LTAISxaXkVGKq7Ec
projectMap.woyou.oss.keySecret=CokBrGxVPQc9v0I9TXdbqqUfHX8YYJ
projectMap.woyou.oss.bucketName=woyou-pro
projectMap.woyou.oss.folder=woyou/
#魔方
projectMap.mofang.oss.host=https://imgb.mofangx.com
projectMap.mofang.oss.keyId=LTAIki0hQzKhpIqj
projectMap.mofang.oss.keySecret=Nf3kkjO8cr35mVsEUrgiihmr3FFTZk
projectMap.mofang.oss.bucketName=mofang-pro
projectMap.mofang.oss.folder=erp/
#冬青
projectMap.dongqing.oss.host=https://imgb.yeyotravel.com
projectMap.dongqing.oss.keyId=LTAIowdw5AYNzOZE
projectMap.dongqing.oss.keySecret=M5lqYM4DwRE19RCnFJUblNPt9I0aM8
projectMap.dongqing.oss.bucketName=dongq
projectMap.dongqing.oss.folder=pro/
#熊猫
projectMap.panda.oss.host=https://imgb.98panda.com
projectMap.panda.oss.keyId=LTAIJ7SrAiTrrYXn
projectMap.panda.oss.keySecret=kaZxBV9E9dkJVF6avIMoa8GPLLzFmF
projectMap.panda.oss.bucketName=bucket-panda
projectMap.panda.oss.folder=test/
#优行
projectMap.wouxing.oss.host=https://img.youxingnet.com
projectMap.wouxing.oss.keyId=LTAIki0hQzKhpIqj
projectMap.wouxing.oss.keySecret=Nf3kkjO8cr35mVsEUrgiihmr3FFTZk
projectMap.wouxing.oss.bucketName=yx-pro
projectMap.wouxing.oss.folder=mofang/
#飓风
projectMap.jufeng.oss.host=https://res.m17go.com
projectMap.jufeng.oss.keyId=LTAI4FuUhqeCYPqE34ZrTMaz
projectMap.jufeng.oss.keySecret=KqyGDq53qsrbZrKsxZ1Myu6IPZGT2J
projectMap.jufeng.oss.bucketName=ds-resources
projectMap.jufeng.oss.folder=mofang/
\ No newline at end of file
projectMap:
default : mofang
ueditor:
- env : woyou
bucketName: woyou-pro
folder: woyou/
host: https://imgb.woyoubooking.com
keyId: LTAISxaXkVGKq7Ec
keySecret: CokBrGxVPQc9v0I9TXdbqqUfHX8YYJ
- env : mofang
bucketName: mofang-pro
folder: erp/
host: https://imgb.mofangx.com
keyId: LTAIki0hQzKhpIqj
keySecret: Nf3kkjO8cr35mVsEUrgiihmr3FFTZk
- env : panda
bucketName: bucket-panda
folder: test/
host: https://imgb.98panda.com
keyId : LTAIJ7SrAiTrrYXn
keySecret : kaZxBV9E9dkJVF6avIMoa8GPLLzFmF
- env : dongqing
bucketName: dongq
folder: pro/
host: https://imgb.yeyotravel.com
keyId: LTAIowdw5AYNzOZE
keySecret: M5lqYM4DwRE19RCnFJUblNPt9I0aM8
- env : youxing
bucketName: yx-pro
folder: mofang/
host: https://img.youxingnet.com
keyId: LTAIki0hQzKhpIqj
keySecret: Nf3kkjO8cr35mVsEUrgiihmr3FFTZk
- env : jufeng
bucketName: ds-resources
folder: mofang/
host: https://res.m17go.com
keyId: LTAI4FuUhqeCYPqE34ZrTMaz
keySecret: KqyGDq53qsrbZrKsxZ1Myu6IPZGT2J
\ No newline at end of file
package com.example;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class UeditorTestApplicationTests {
@Test
public void contextLoads() {
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论