Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ethan
/
awesome-bpj-start
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit eb29fd2f
authored
2018-03-30 16:02:43 +0800
by
ethanlamzs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
目录及其文件进行适当的调整
1 parent
9fffa681
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
core-services/core-service-demo/src/main/java/com/zhzf/fpj/xcx/demodubbospringbootstart/DemoDubboSpringBootStartApplication.java → core-services/core-service-demo/src/main/java/com/zhzf/fpj/xcx/bootstart/ServiceBootStartApplication.java
core-services/core-service-demo/src/main/java/com/zhzf/fpj/xcx/demodubbospringbootstart/service/TestDemoService.java → core-services/core-service-demo/src/main/java/com/zhzf/fpj/xcx/service/TestDemoService.java
core-services/core-service-demo/src/main/resources/application.properties
core-webs/web-demo/src/main/java/com/zhzf/fpj/xcx/demodubbospringbootstart/DemoDubboSpringBootStartApplication.java → core-webs/web-demo/src/main/java/com/zhzf/fpj/xcx/bootstart/WebBootStartApplication.java
core-webs/web-demo/src/main/java/com/zhzf/fpj/xcx/web/controller/DemoConsumerController.java
core-services/core-service-demo/src/main/java/com/zhzf/fpj/xcx/
demodubbospringbootstart/DemoDubboSpring
BootStartApplication.java
→
core-services/core-service-demo/src/main/java/com/zhzf/fpj/xcx/
bootstart/Service
BootStartApplication.java
View file @
eb29fd2
package
com
.
zhzf
.
fpj
.
xcx
.
demodubbospring
bootstart
;
package
com
.
zhzf
.
fpj
.
xcx
.
bootstart
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
@SpringBootApplication
@SpringBootApplication
public
class
DemoDubboSpring
BootStartApplication
{
public
class
Service
BootStartApplication
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
DemoDubboSpring
BootStartApplication
.
class
,
args
);
SpringApplication
.
run
(
Service
BootStartApplication
.
class
,
args
);
try
{
try
{
System
.
in
.
read
();
System
.
in
.
read
();
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
core-services/core-service-demo/src/main/java/com/zhzf/fpj/xcx/
demodubbospringbootstart/
service/TestDemoService.java
→
core-services/core-service-demo/src/main/java/com/zhzf/fpj/xcx/service/TestDemoService.java
View file @
eb29fd2
package
com
.
zhzf
.
fpj
.
xcx
.
demodubbospringbootstart
.
service
;
package
com
.
zhzf
.
fpj
.
xcx
.
service
;
import
com.alibaba.dubbo.config.annotation.Service
;
import
com.alibaba.dubbo.config.annotation.Service
;
import
com.zhzf.fpj.xcx.demo.DemoService
;
import
com.zhzf.fpj.xcx.demo.DemoService
;
...
...
core-services/core-service-demo/src/main/resources/application.properties
View file @
eb29fd2
...
@@ -4,7 +4,7 @@ server.port = 9090
...
@@ -4,7 +4,7 @@ server.port = 9090
management.port
=
9091
management.port
=
9091
# Base packages to scan Dubbo Components (e.g., @Service, @Reference)
# 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
# Dubbo Config properties
## ApplicationConfig Bean
## ApplicationConfig Bean
...
...
core-webs/web-demo/src/main/java/com/zhzf/fpj/xcx/
demodubbospringbootstart/DemoDubboSpring
BootStartApplication.java
→
core-webs/web-demo/src/main/java/com/zhzf/fpj/xcx/
bootstart/Web
BootStartApplication.java
View file @
eb29fd2
package
com
.
zhzf
.
fpj
.
xcx
.
demodubbospring
bootstart
;
package
com
.
zhzf
.
fpj
.
xcx
.
bootstart
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
@SpringBootApplication
(
scanBasePackages
=
"com.zhzf.fpj.xcx.web.controller"
)
@SpringBootApplication
(
scanBasePackages
=
"com.zhzf.fpj.xcx.web.controller"
)
public
class
DemoDubboSpring
BootStartApplication
{
public
class
Web
BootStartApplication
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
DemoDubboSpring
BootStartApplication
.
class
,
args
);
SpringApplication
.
run
(
Web
BootStartApplication
.
class
,
args
);
}
}
...
...
core-webs/web-demo/src/main/java/com/zhzf/fpj/xcx/web/controller/DemoConsumerController.java
View file @
eb29fd2
...
@@ -14,7 +14,7 @@ public class DemoConsumerController {
...
@@ -14,7 +14,7 @@ public class DemoConsumerController {
@Reference
(
version
=
"1.0.0"
,
@Reference
(
version
=
"1.0.0"
,
application
=
"${dubbo.application.id}"
,
application
=
"${dubbo.application.id}"
,
url
=
"dubbo://localhost:12345"
)
url
=
"dubbo://localhost:12345"
,
check
=
false
)
private
DemoService
demoService
;
private
DemoService
demoService
;
@RequestMapping
(
"/sayHello"
)
@RequestMapping
(
"/sayHello"
)
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment