Commit 43183a467ad8a90e5f4870beb2b1f44f2963e074
1 parent
8506d984
解决,找不到jeecg-cloud-module在其子目录config下有两个配置文件 #1754
Showing
3 changed files
with
292 additions
and
0 deletions
jeecg-boot/jeecg-cloud-module/config/bootstrap.yml
0 → 100644
1 | +server: | |
2 | + port: 8080 | |
3 | +spring: | |
4 | + application: | |
5 | + name: jeecg-system | |
6 | + cloud: | |
7 | + nacos: | |
8 | + discovery: | |
9 | + server-addr: 127.0.0.1:8848 | |
10 | + config: | |
11 | + file-extension: yml | |
12 | + server-addr: 127.0.0.1:8848 | |
13 | + shared-dataids: jeecg-cloud-application-beta.yml | |
14 | +feign: | |
15 | + sentinel: | |
16 | + enabled: true | |
0 | 17 | \ No newline at end of file |
... | ... |
jeecg-boot/jeecg-cloud-module/config/jeecg-cloud-application-beta.yml
0 → 100644
1 | +server: | |
2 | + tomcat: | |
3 | + max-swallow-size: -1 | |
4 | + servlet: | |
5 | + context-path: / | |
6 | + compression: | |
7 | + enabled: true | |
8 | + min-response-size: 1024 | |
9 | + mime-types: application/javascript,application/json,application/xml,text/html,text/xml,text/plain,text/css,image/* | |
10 | + | |
11 | +management: | |
12 | + endpoints: | |
13 | + web: | |
14 | + exposure: | |
15 | + include: metrics,httptrace | |
16 | + | |
17 | +spring: | |
18 | + servlet: | |
19 | + multipart: | |
20 | + max-file-size: 10MB | |
21 | + max-request-size: 10MB | |
22 | + mail: | |
23 | + host: smtp.163.com | |
24 | + username: jeecgos@163.com | |
25 | + password: ?? | |
26 | + properties: | |
27 | + mail: | |
28 | + smtp: | |
29 | + auth: true | |
30 | + starttls: | |
31 | + enable: true | |
32 | + required: true | |
33 | + ## quartz定时任务,采用数据库方式 | |
34 | + quartz: | |
35 | + job-store-type: jdbc | |
36 | + initialize-schema: embedded | |
37 | + #设置自动启动,默认为 true | |
38 | + auto-startup: true | |
39 | + #启动时更新己存在的Job | |
40 | + overwrite-existing-jobs: true | |
41 | + properties: | |
42 | + org: | |
43 | + quartz: | |
44 | + scheduler: | |
45 | + instanceName: MyScheduler | |
46 | + instanceId: AUTO | |
47 | + jobStore: | |
48 | + class: org.quartz.impl.jdbcjobstore.JobStoreTX | |
49 | + driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate | |
50 | + tablePrefix: QRTZ_ | |
51 | + isClustered: true | |
52 | + misfireThreshold: 60000 | |
53 | + clusterCheckinInterval: 10000 | |
54 | + threadPool: | |
55 | + class: org.quartz.simpl.SimpleThreadPool | |
56 | + threadCount: 10 | |
57 | + threadPriority: 5 | |
58 | + threadsInheritContextClassLoaderOfInitializingThread: true | |
59 | + #json 时间戳统一转换 | |
60 | + jackson: | |
61 | + date-format: yyyy-MM-dd HH:mm:ss | |
62 | + time-zone: GMT+8 | |
63 | + aop: | |
64 | + proxy-target-class: true | |
65 | + activiti: | |
66 | + check-process-definitions: false | |
67 | + #启用作业执行器 | |
68 | + async-executor-activate: false | |
69 | + #启用异步执行器 | |
70 | + job-executor-activate: false | |
71 | + jpa: | |
72 | + open-in-view: false | |
73 | + #配置freemarker | |
74 | + freemarker: | |
75 | + # 设置模板后缀名 | |
76 | + suffix: .ftl | |
77 | + # 设置文档类型 | |
78 | + content-type: text/html | |
79 | + # 设置页面编码格式 | |
80 | + charset: UTF-8 | |
81 | + # 设置页面缓存 | |
82 | + cache: false | |
83 | + prefer-file-system-access: false | |
84 | + # 设置ftl文件路径 | |
85 | + template-loader-path: | |
86 | + - classpath:/templates | |
87 | + # 设置静态文件路径,js,css等 | |
88 | + mvc: | |
89 | + static-path-pattern: /** | |
90 | + resource: | |
91 | + static-locations: classpath:/static/,classpath:/public/ | |
92 | + autoconfigure: | |
93 | + exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure | |
94 | + datasource: | |
95 | + druid: | |
96 | + stat-view-servlet: | |
97 | + enabled: true | |
98 | + loginUsername: admin | |
99 | + loginPassword: 123456 | |
100 | + allow: | |
101 | + web-stat-filter: | |
102 | + enabled: true | |
103 | + dynamic: | |
104 | + druid: # 全局druid参数,绝大部分值和默认保持一致。(现已支持的参数如下,不清楚含义不要乱设置) | |
105 | + # 连接池的配置信息 | |
106 | + # 初始化大小,最小,最大 | |
107 | + initial-size: 5 | |
108 | + min-idle: 5 | |
109 | + maxActive: 20 | |
110 | + # 配置获取连接等待超时的时间 | |
111 | + maxWait: 60000 | |
112 | + # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 | |
113 | + timeBetweenEvictionRunsMillis: 60000 | |
114 | + # 配置一个连接在池中最小生存的时间,单位是毫秒 | |
115 | + minEvictableIdleTimeMillis: 300000 | |
116 | + validationQuery: SELECT 1 FROM DUAL | |
117 | + testWhileIdle: true | |
118 | + testOnBorrow: false | |
119 | + testOnReturn: false | |
120 | + # 打开PSCache,并且指定每个连接上PSCache的大小 | |
121 | + poolPreparedStatements: true | |
122 | + maxPoolPreparedStatementPerConnectionSize: 20 | |
123 | + # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙 | |
124 | + filters: stat,wall,slf4j | |
125 | + # 通过connectProperties属性来打开mergeSql功能;慢SQL记录 | |
126 | + connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000 | |
127 | + datasource: | |
128 | + master: | |
129 | + url: jdbc:mysql://127.0.0.1:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false | |
130 | + username: root | |
131 | + password: root | |
132 | + driver-class-name: com.mysql.jdbc.Driver | |
133 | + # 多数据源配置 | |
134 | + #multi-datasource1: | |
135 | + #url: jdbc:mysql://localhost:3306/jeecg-boot2?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai | |
136 | + #username: root | |
137 | + #password: root | |
138 | + #driver-class-name: com.mysql.cj.jdbc.Driver | |
139 | + #redis 配置 | |
140 | + redis: | |
141 | + database: 0 | |
142 | + host: 127.0.0.1 | |
143 | + lettuce: | |
144 | + pool: | |
145 | + max-active: 8 #最大连接数据库连接数,设 0 为没有限制 | |
146 | + max-idle: 8 #最大等待连接中的数量,设 0 为没有限制 | |
147 | + max-wait: -1ms #最大建立连接等待时间。如果超过此时间将接到异常。设为-1表示无限制。 | |
148 | + min-idle: 0 #最小等待连接中的数量,设 0 为没有限制 | |
149 | + shutdown-timeout: 100ms | |
150 | + password: '' | |
151 | + port: 6379 | |
152 | +#mybatis plus 设置 | |
153 | +mybatis-plus: | |
154 | + mapper-locations: classpath*:org/jeecg/modules/**/xml/*Mapper.xml | |
155 | + global-config: | |
156 | + # 关闭MP3.0自带的banner | |
157 | + banner: false | |
158 | + db-config: | |
159 | + #主键类型 0:"数据库ID自增",1:"该类型为未设置主键类型", 2:"用户输入ID",3:"全局唯一ID (数字类型唯一ID)", 4:"全局唯一ID UUID",5:"字符串全局唯一ID (idWorker 的字符串表示)"; | |
160 | + id-type: 4 | |
161 | + # 默认数据库表下划线命名 | |
162 | + table-underline: true | |
163 | + configuration: | |
164 | + # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用 | |
165 | + #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl | |
166 | + # 返回类型为Map,显示null对应的字段 | |
167 | + call-setters-on-nulls: true | |
168 | +#jeecg专用配置 | |
169 | +jeecg : | |
170 | + # 本地:local\Minio:minio\阿里云:alioss | |
171 | + uploadType: local | |
172 | + path : | |
173 | + #文件上传根目录 设置 | |
174 | + upload: D://opt//upFiles | |
175 | + #webapp文件路径 | |
176 | + webapp: D://opt//webapp | |
177 | + #短信秘钥 | |
178 | + sms: | |
179 | + accessKeyId: ?? | |
180 | + accessKeySecret: ?? | |
181 | + shiro: | |
182 | + excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/** | |
183 | + #阿里云oss存储配置 | |
184 | + oss: | |
185 | + endpoint: oss-cn-beijing.aliyuncs.com | |
186 | + accessKey: ?? | |
187 | + secretKey: ?? | |
188 | + bucketName: jeecgos | |
189 | + staticDomain: ?? | |
190 | + # ElasticSearch 6设置 | |
191 | + elasticsearch: | |
192 | + cluster-name: jeecg-ES | |
193 | + cluster-nodes: 127.0.0.1:9200 | |
194 | + check-enabled: false | |
195 | + # 表单设计器配置 | |
196 | + desform: | |
197 | + # 主题颜色(仅支持 16进制颜色代码) | |
198 | + theme-color: "#1890ff" | |
199 | + # 文件、图片上传方式,可选项:qiniu(七牛云)、system(跟随系统配置) | |
200 | + upload-type: system | |
201 | + # 在线预览文件服务器地址配置 | |
202 | + file-view-domain: 127.0.0.1:8012 | |
203 | + # minio文件上传 | |
204 | + minio: | |
205 | + minio_url: http://minio.jeecg.com | |
206 | + minio_name: ?? | |
207 | + minio_pass: ?? | |
208 | + bucketName: otatest | |
209 | + #大屏报表参数设置 | |
210 | + jmreport: | |
211 | + #是否需要校验token | |
212 | + is_verify_token: false | |
213 | + #必须校验方法 | |
214 | + verify_methods: remove,delete,save,add,update | |
215 | + #Wps在线文档 | |
216 | + wps: | |
217 | + domain: https://wwo.wps.cn/office/ | |
218 | + appid: ?? | |
219 | + appsecret: ?? | |
220 | +#Mybatis输出sql日志 | |
221 | +logging: | |
222 | + level: | |
223 | + org.jeecg.modules.online.auth.mapper: debug | |
224 | + org.jeecg.modules.online.cgform.mapper: debug | |
225 | + #org.jeecg.modules.system.mapper: debug | |
226 | +#cas单点登录 | |
227 | +cas: | |
228 | + prefixUrl: http://cas.example.org:8443/cas | |
229 | +#enable swagger | |
230 | +swagger: | |
231 | + enable: true | |
232 | +#大屏报表参数设置 | |
233 | +jmreport: | |
234 | + #是否需要校验token | |
235 | + is_verify_token: false | |
236 | + # 必须校验方法 | |
237 | + verify_methods: remove,delete,save,add,update | |
0 | 238 | \ No newline at end of file |
... | ... |
jeecg-boot/jeecg-cloud-module/config/jeecg-cloud-gateway-beta.yml
0 → 100644
1 | +spring: | |
2 | + redis: | |
3 | + host: 127.0.0.1 | |
4 | + password: '' | |
5 | + port: 6379 | |
6 | + cloud: | |
7 | + gateway: | |
8 | + discovery: | |
9 | + locator: | |
10 | + enabled: true | |
11 | + globalcors: | |
12 | + cors-configurations: | |
13 | + '[/**]': | |
14 | + allowCredentials: true | |
15 | + allowedOrigins: "*" | |
16 | + allowedMethods: "*" | |
17 | + allowedHeaders: "*" | |
18 | + routes: | |
19 | + - id: jeecg-online | |
20 | + uri: lb://jeecg-online | |
21 | + predicates: | |
22 | + - Path=/online/** | |
23 | + - id: jeecg-demo | |
24 | + uri: lb://jeecg-demo | |
25 | + predicates: | |
26 | + - Path=/mock/**,/big/**,/test/**,/dlglong/** | |
27 | + - id: jeecg-system | |
28 | + uri: lb://jeecg-system | |
29 | + predicates: | |
30 | + - Path=/sys/**,/online/**,/api/**,/bigscreen/**,/webSocketApi/**,/message/**,/filemanage/**,/email/**,/oa/im/**,/metting/**,/officialdoc/**,/eoa/plan/**,/sign/**,/biz/extBizLeave/**,/designform/**,/desform/**,/lib/**,/tinymce/**,/unpkg/**,/app/joa/**,/joa/**,/filedisk/**,/oa/im/**,/im/**,/desform/**,/process/**,/designer/**,/cms/**,/chat/eoaCmsMenu/**,/act/**,/plug-in/**,/design/report/**,/jmreport/bigscreen/**,/bigscreen/**,/jmreport/desreport_/**,/actuator/** | |
31 | + - id: jeecg-cloud-websocket | |
32 | + uri: lb:ws://jeecg-system | |
33 | + predicates: | |
34 | + - Path=/websocket/** | |
35 | +management: | |
36 | + endpoints: | |
37 | + web: | |
38 | + exposure: | |
39 | + include: metrics,httptrace | |
0 | 40 | \ No newline at end of file |
... | ... |