File tree 28 files changed +109
-72
lines changed
java/org/apache/servicecomb/samples/porter/gateway
java/org/apache/servicecomb/samples/porter/user
28 files changed +109
-72
lines changed Original file line number Diff line number Diff line change @@ -83,3 +83,6 @@ __pycache__/
83
83
84
84
# gradle
85
85
.gradle
86
+
87
+ # maven
88
+ .versionsBackup
Original file line number Diff line number Diff line change 22
22
<parent >
23
23
<groupId >org.apache.servicecomb.samples.porter</groupId >
24
24
<artifactId >common-api</artifactId >
25
- <version >2.0 .0</version >
25
+ <version >2.1 .0</version >
26
26
</parent >
27
27
28
28
<artifactId >common-api-endpoint</artifactId >
Original file line number Diff line number Diff line change 23
23
<parent >
24
24
<groupId >org.apache.servicecomb.samples.porter</groupId >
25
25
<artifactId >porter-api</artifactId >
26
- <version >2.0 .0</version >
26
+ <version >2.1 .0</version >
27
27
</parent >
28
28
29
29
<artifactId >common-api</artifactId >
Original file line number Diff line number Diff line change 22
22
<parent >
23
23
<groupId >org.apache.servicecomb.samples.porter</groupId >
24
24
<artifactId >common-api</artifactId >
25
- <version >2.0 .0</version >
25
+ <version >2.1 .0</version >
26
26
</parent >
27
27
28
28
<artifactId >common-api-service</artifactId >
Original file line number Diff line number Diff line change 22
22
<parent >
23
23
<groupId >org.apache.servicecomb.samples.porter</groupId >
24
24
<artifactId >file-service-api</artifactId >
25
- <version >2.0 .0</version >
25
+ <version >2.1 .0</version >
26
26
</parent >
27
27
28
28
<artifactId >file-service-api-endpoint</artifactId >
Original file line number Diff line number Diff line change 23
23
<parent >
24
24
<groupId >org.apache.servicecomb.samples.porter</groupId >
25
25
<artifactId >porter-api</artifactId >
26
- <version >2.0 .0</version >
26
+ <version >2.1 .0</version >
27
27
</parent >
28
28
29
29
<artifactId >file-service-api</artifactId >
Original file line number Diff line number Diff line change 22
22
<parent >
23
23
<groupId >org.apache.servicecomb.samples.porter</groupId >
24
24
<artifactId >file-service-api</artifactId >
25
- <version >2.0 .0</version >
25
+ <version >2.1 .0</version >
26
26
</parent >
27
27
28
28
<artifactId >file-service-api-service</artifactId >
Original file line number Diff line number Diff line change 23
23
<parent >
24
24
<groupId >org.apache.servicecomb.samples.porter</groupId >
25
25
<artifactId >porter-application</artifactId >
26
- <version >2.0 .0</version >
26
+ <version >2.1 .0</version >
27
27
</parent >
28
28
29
29
<artifactId >porter-api</artifactId >
Original file line number Diff line number Diff line change 22
22
<parent >
23
23
<groupId >org.apache.servicecomb.samples.porter</groupId >
24
24
<artifactId >user-service-api</artifactId >
25
- <version >2.0 .0</version >
25
+ <version >2.1 .0</version >
26
26
</parent >
27
27
28
28
<artifactId >user-service-api-endpoint</artifactId >
Original file line number Diff line number Diff line change 23
23
<parent >
24
24
<groupId >org.apache.servicecomb.samples.porter</groupId >
25
25
<artifactId >porter-api</artifactId >
26
- <version >2.0 .0</version >
26
+ <version >2.1 .0</version >
27
27
</parent >
28
28
29
29
<artifactId >user-service-api</artifactId >
Original file line number Diff line number Diff line change 22
22
<parent >
23
23
<groupId >org.apache.servicecomb.samples.porter</groupId >
24
24
<artifactId >user-service-api</artifactId >
25
- <version >2.0 .0</version >
25
+ <version >2.1 .0</version >
26
26
</parent >
27
27
28
28
<artifactId >user-service-api-service</artifactId >
Original file line number Diff line number Diff line change 22
22
<parent >
23
23
<groupId >org.apache.servicecomb.samples.porter</groupId >
24
24
<artifactId >porter-application</artifactId >
25
- <version >2.0 .0</version >
25
+ <version >2.1 .0</version >
26
26
</parent >
27
27
28
28
<artifactId >porter-file-service</artifactId >
Original file line number Diff line number Diff line change 17
17
# # ---------------------------------------------------------------------------
18
18
# spring boot configurations
19
19
server :
20
- port : 9091 # should be same with servicecomb.rest.address to use web container
20
+ port : 9092 # should be same with servicecomb.rest.address to use web container
21
21
22
22
# override common configurations in common module
23
23
servicecomb-config-order : 10
@@ -36,7 +36,7 @@ servicecomb:
36
36
watch : false
37
37
38
38
rest :
39
- address : 0.0.0.0:9091 # should be same with server.port to use web container
39
+ address : 0.0.0.0:9092 # should be same with server.port to use web container
40
40
41
41
uploads :
42
42
directory : tmp_for_upload_file
Original file line number Diff line number Diff line change 22
22
<parent >
23
23
<groupId >org.apache.servicecomb.samples.porter</groupId >
24
24
<artifactId >porter-application</artifactId >
25
- <version >2.0 .0</version >
25
+ <version >2.1 .0</version >
26
26
</parent >
27
27
28
28
<artifactId >porter-gateway-service</artifactId >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 15
15
# limitations under the License.
16
16
#
17
17
18
- org.apache.servicecomb.samples.porter.gateway.ApiDispatcher
19
- org.apache.servicecomb.samples.porter.gateway.StaticWebpageDispatcher
18
+ org.apache.servicecomb.samples.porter.gateway.ApiDispatcher
Original file line number Diff line number Diff line change @@ -58,8 +58,16 @@ servicecomb:
58
58
edge :
59
59
default :
60
60
enabled : false
61
- rest :
62
- pattern : ' [/v1/log/|/inspector](.*)'
61
+ http :
62
+ enabled : true
63
+ pattern : /ui/(.*)
64
+ mappings :
65
+ website :
66
+ prefixSegmentCount : 0
67
+ path : " /ui/.*"
68
+ microserviceName : website
69
+ versionRule : 0.0.0+
70
+
63
71
64
72
# This is web root for windows server, change this path according to where you put your source code
65
73
gateway :
Original file line number Diff line number Diff line change 22
22
23
23
<groupId >org.apache.servicecomb.samples.porter</groupId >
24
24
<artifactId >porter-application</artifactId >
25
- <version >2.0 .0</version >
25
+ <version >2.1 .0</version >
26
26
<packaging >pom</packaging >
27
27
28
28
<properties >
62
62
<groupId >org.apache.servicecomb</groupId >
63
63
<artifactId >solution-basic</artifactId >
64
64
</dependency >
65
+ <dependency >
66
+ <groupId >org.apache.servicecomb</groupId >
67
+ <artifactId >registry-service-center</artifactId >
68
+ </dependency >
65
69
</dependencies >
66
70
67
71
<modules >
68
72
<module >api</module >
69
73
<module >file-service</module >
70
74
<module >user-service</module >
71
75
<module >gateway-service</module >
76
+ <module >website</module >
72
77
</modules >
73
78
74
79
<build >
Original file line number Diff line number Diff line change 23
23
<parent >
24
24
<groupId >org.apache.servicecomb.samples.porter</groupId >
25
25
<artifactId >porter-application</artifactId >
26
- <version >2.0 .0</version >
26
+ <version >2.1 .0</version >
27
27
</parent >
28
28
29
29
<artifactId >porter-user-service</artifactId >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
4
+ <parent >
5
+ <groupId >org.apache.servicecomb.samples.porter</groupId >
6
+ <artifactId >porter-application</artifactId >
7
+ <version >2.1.0</version >
8
+ </parent >
9
+
10
+ <modelVersion >4.0.0</modelVersion >
11
+
12
+ <artifactId >porter-website</artifactId >
13
+ <packaging >jar</packaging >
14
+
15
+ <dependencies >
16
+ <dependency >
17
+ <groupId >org.apache.servicecomb</groupId >
18
+ <artifactId >java-chassis-spring-boot-starter-servlet</artifactId >
19
+ </dependency >
20
+ </dependencies >
21
+
22
+ <build >
23
+ <plugins >
24
+ <plugin >
25
+ <groupId >org.apache.maven.plugins</groupId >
26
+ <artifactId >maven-dependency-plugin</artifactId >
27
+ </plugin >
28
+ <plugin >
29
+ <groupId >org.springframework.boot</groupId >
30
+ <artifactId >spring-boot-maven-plugin</artifactId >
31
+ </plugin >
32
+ </plugins >
33
+ </build >
34
+
35
+ </project >
Original file line number Diff line number Diff line change
1
+ package org .apache .servicecomb .samples .porter .user ;
2
+
3
+ import org .apache .servicecomb .springboot2 .starter .EnableServiceComb ;
4
+ import org .springframework .boot .SpringApplication ;
5
+ import org .springframework .boot .autoconfigure .SpringBootApplication ;
6
+
7
+ @ SpringBootApplication
8
+ @ EnableServiceComb
9
+ public class WebsiteApplication {
10
+ public static void main (String [] args ) throws Exception {
11
+ SpringApplication .run (WebsiteApplication .class , args );
12
+ }
13
+ }
Original file line number Diff line number Diff line change
1
+ # # Spring Boot configurations
2
+ server :
3
+ port : 9091
4
+ # servlet.path: /
5
+
6
+ APPLICATION_ID : porter-application
7
+ service_description :
8
+ version : 0.0.1
9
+ name : website
10
+
11
+ servicecomb :
12
+ service :
13
+ registry :
14
+ address : http://localhost:30100
15
+ instance :
16
+ watch : false
17
+
18
+ rest :
19
+ address : 0.0.0.0:9091 # should be same with server.port to use web container
20
+ # # static web site will token root
21
+ servlet :
22
+ urlPattern : /api/*
23
+
24
+ metrics :
25
+ publisher.defaultLog :
26
+ enabled : false
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments