Commit eb29fd2f by ethanlamzs

目录及其文件进行适当的调整

1 parent 9fffa681
package com.zhzf.fpj.xcx.demodubbospringbootstart;
package com.zhzf.fpj.xcx.bootstart;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class DemoDubboSpringBootStartApplication {
public class ServiceBootStartApplication {
public static void main(String[] args) {
SpringApplication.run(DemoDubboSpringBootStartApplication.class, args);
SpringApplication.run(ServiceBootStartApplication.class, args);
try {
System.in.read();
} catch (Exception e) {
......
package com.zhzf.fpj.xcx.demodubbospringbootstart.service;
package com.zhzf.fpj.xcx.service;
import com.alibaba.dubbo.config.annotation.Service;
import com.zhzf.fpj.xcx.demo.DemoService;
......
......@@ -4,7 +4,7 @@ server.port = 9090
management.port = 9091
# Base packages to scan Dubbo Components (e.g., @Service, @Reference)
dubbo.scan.basePackages = com.zhzf.fpj.xcx.demodubbospringbootstart.service
dubbo.scan.basePackages = com.zhzf.fpj.xcx.service
# Dubbo Config properties
## ApplicationConfig Bean
......
package com.zhzf.fpj.xcx.demodubbospringbootstart;
package com.zhzf.fpj.xcx.bootstart;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication(scanBasePackages = "com.zhzf.fpj.xcx.web.controller")
public class DemoDubboSpringBootStartApplication {
public class WebBootStartApplication {
public static void main(String[] args) {
SpringApplication.run(DemoDubboSpringBootStartApplication.class, args);
SpringApplication.run(WebBootStartApplication.class, args);
}
......
......@@ -14,7 +14,7 @@ public class DemoConsumerController {
@Reference(version = "1.0.0",
application = "${dubbo.application.id}",
url = "dubbo://localhost:12345")
url = "dubbo://localhost:12345",check = false)
private DemoService demoService;
@RequestMapping("/sayHello")
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!