youseries / ureport

UReport2 is a high-performance pure Java report engine based on Spring architecture, where complex Chinese-style statements and reports can be prepared by iterating over cells.
Apache License 2.0
2.02k stars 834 forks source link

使用ureport2后,服务无法注册到nacos #560

Open EETDA opened 3 years ago

EETDA commented 3 years ago

2.2.9

1125068334 commented 2 years ago

启动日志发一下

yichen-m commented 10 months ago

会出先serviceName is null ,nacos所需要的服务名称为空的情况,

cuipy commented 6 months ago

解决了,这么配置 server: port: 8283

spring: application: name: 'itms-ureport2' profiles: active: '@profile.name@' # 环境设置 cloud: nacos: config: server-addr: '@nacos.server-addr@' namespace: '@nacos.namespace@' group: '@nacos.group@' refresh-enabled: true discovery: server-addr: '@nacos.server-addr@' namespace: '@nacos.namespace@' group: '@nacos.group@' service: 'itms-ureport2'

关键是 spring.cloud.nacos.discovery.service = itms-ureport2