- provider 添加版本号

This commit is contained in:
sin 2019-05-16 10:15:19 +08:00
parent 755d94cbdc
commit 0757b45d08
4 changed files with 9 additions and 3 deletions

View File

@ -34,7 +34,7 @@ import java.util.stream.Collectors;
* @time 2019-04-12 21:32
*/
@Service
@org.apache.dubbo.config.annotation.Service(validation = "true")
@org.apache.dubbo.config.annotation.Service(validation = "true", version = "${dubbo.provider.OrderLogisticsService.version}")
public class OrderLogisticsServiceImpl implements OrderLogisticsService {
@Autowired

View File

@ -40,7 +40,7 @@ import java.util.UUID;
* @time 2019-03-30 15:35
*/
@Service
@org.apache.dubbo.config.annotation.Service(validation = "true")
@org.apache.dubbo.config.annotation.Service(validation = "true", version = "${dubbo.provider.OrderReturnService.version}")
public class OrderReturnServiceImpl implements OrderReturnService {
@Autowired

View File

@ -40,7 +40,7 @@ import java.util.stream.Collectors;
* @time 2019-03-16 15:08
*/
@Service
@org.apache.dubbo.config.annotation.Service(validation = "true")
@org.apache.dubbo.config.annotation.Service(validation = "true", version = "${dubbo.provider.OrderService.version}")
public class OrderServiceImpl implements OrderService {
/**

View File

@ -38,6 +38,12 @@ dubbo:
filter: -exception
CartService:
version: 1.0.0
OrderService:
version: 1.0.0
OrderReturnService:
version: 1.0.0
OrderLogisticsService:
version: 1.0.0
consumer:
timeout: 120000 # 设置长一点,方便调试代码
ProductSpuService: