Compare commits

...

5 Commits

5 changed files with 177 additions and 172 deletions

View File

@ -109,28 +109,33 @@ services:
# environment: # environment:
# RABBITMQ_DEFAULT_USER: guest # RABBITMQ_DEFAULT_USER: guest
# RABBITMQ_DEFAULT_PASS: guest # RABBITMQ_DEFAULT_PASS: guest
# jeecg-boot-sentinel:
# restart: on-failure
# build:
# context: ./jeecg-visual/jeecg-cloud-sentinel
# ports:
# - 9000:9000
# depends_on:
# - jeecg-boot-nacos
# - jeecg-boot-demo
# - jeecg-boot-system
# - jeecg-boot-gateway
# container_name: jeecg-boot-sentinel
# hostname: jeecg-boot-sentinel
#
# jeecg-boot-xxljob:
# build:
# context: ./jeecg-visual/jeecg-cloud-xxljob
# ports:
# - 9080:9080
# container_name: jeecg-boot-xxljob
# hostname: jeecg-boot-xxljob
jeecg-boot-sentinel:
restart: on-failure
build:
context: ./jeecg-boot/jeecg-server-cloud/jeecg-visual/jeecg-cloud-sentinel
ports:
- 9000:9000
depends_on:
- jeecg-boot-nacos
- jeecg-boot-demo
- jeecg-boot-system
- jeecg-boot-gateway
container_name: jeecg-boot-sentinel
hostname: jeecg-boot-sentinel
networks:
- jeecg-boot
jeecg-boot-xxljob:
build:
context: ./jeecg-boot/jeecg-server-cloud/jeecg-visual/jeecg-cloud-xxljob
ports:
- 9080:9080
container_name: jeecg-boot-xxljob
hostname: jeecg-boot-xxljob
networks:
- jeecg-boot
jeecg-vue: jeecg-vue:
build: build:
context: ./jeecgboot-vue3 context: ./jeecgboot-vue3

File diff suppressed because one or more lines are too long

View File

@ -133,7 +133,7 @@ public class SysTenantController {
@RequestMapping(value = "/add", method = RequestMethod.POST) @RequestMapping(value = "/add", method = RequestMethod.POST)
public Result<SysTenant> add(@RequestBody SysTenant sysTenant) { public Result<SysTenant> add(@RequestBody SysTenant sysTenant) {
Result<SysTenant> result = new Result(); Result<SysTenant> result = new Result();
if(sysTenantService.getById(sysTenant.getId())!=null){ if(sysTenant!=null && oConvertUtils.isNotEmpty(sysTenant.getId()) && sysTenantService.getById(sysTenant.getId())!=null){
return result.error500("该编号已存在!"); return result.error500("该编号已存在!");
} }
try { try {

View File

@ -266,11 +266,11 @@ jeecg:
#xxl-job配置 #xxl-job配置
xxljob: xxljob:
enabled: false enabled: false
adminAddresses: http://127.0.0.1:9080/xxl-job-admin adminAddresses: http://jeecg-boot-xxljob:9080/xxl-job-admin
appname: ${spring.application.name} appname: ${spring.application.name}
accessToken: '' accessToken: ''
address: 127.0.0.1:30007 address: jeecg-boot-xxljob:30007
ip: 127.0.0.1 ip: jeecg-boot-xxljob
port: 30007 port: 30007
logPath: logs/jeecg/job/jobhandler/ logPath: logs/jeecg/job/jobhandler/
logRetentionDays: 30 logRetentionDays: 30

View File

@ -12,5 +12,5 @@ EXPOSE 9080
ADD ./target/jeecg-cloud-xxljob-3.8.3.jar ./ ADD ./target/jeecg-cloud-xxljob-3.8.3.jar ./
CMD java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-cloud-xxljob-3.8.3.jar CMD sleep 60;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-cloud-xxljob-3.8.3.jar