File tree Expand file tree Collapse file tree 3 files changed +5
-25
lines changed
spring-cli/projects/obaas
src/main/java/com/example/restservice/greeting Expand file tree Collapse file tree 3 files changed +5
-25
lines changed Original file line number Diff line number Diff line change 1
1
== Basic Spring Web Application for Oracle Backend for Spring Boot and Microservices
2
2
3
- This project contains a web service that can be deployed on link:https://bit.ly/oraclespringboot [Oracle Backend for Spring Boot and Microservices ]
3
+ This project contains a web service that can be deployed on link:https://bit.ly/OracleAI-microservices [Oracle Backend for Microservices and AI ]
4
4
and includes configuration for the well-known endpoints provided by the platform.
5
5
The web service will accept HTTP GET requests at `http://localhost:8080/greeting` .
6
6
@@ -37,7 +37,7 @@ response, as the following listing shows:
37
37
38
38
[source,bash]
39
39
----
40
- ./mvnw spring-boot:run -Dspring-boot.run.profiles=local
40
+ ./mvnw spring-boot:run -Dspring-boot.run.profiles=local ????
41
41
----
42
42
43
43
Then access the endpoint
Original file line number Diff line number Diff line change 5
5
<parent >
6
6
<groupId >org.springframework.boot</groupId >
7
7
<artifactId >spring-boot-starter-parent</artifactId >
8
- <version >3.2.11 </version >
8
+ <version >3.3.8 </version >
9
9
<relativePath /> <!-- lookup parent from repository -->
10
10
</parent >
11
11
60
60
<dependency >
61
61
<groupId >org.liquibase</groupId >
62
62
<artifactId >liquibase-core</artifactId >
63
- <version >${liquibase.version} </version >
64
63
</dependency >
65
64
66
65
<!-- This enables Spring Actuator which provides monitoring, metrics, etc. -->
98
97
<plugin >
99
98
<groupId >org.liquibase</groupId >
100
99
<artifactId >liquibase-maven-plugin</artifactId >
101
- <version >${liquibase.version} </version >
102
- </plugin >
103
- <plugin >
104
- <groupId >org.openrewrite.maven</groupId >
105
- <artifactId >rewrite-maven-plugin</artifactId >
106
- <version >6.0.5</version >
107
- <configuration >
108
- <exportDatatables >true</exportDatatables >
109
- <activeRecipes >
110
- <recipe >org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_3</recipe >
111
- </activeRecipes >
112
- </configuration >
113
- <dependencies >
114
- <dependency >
115
- <groupId >org.openrewrite.recipe</groupId >
116
- <artifactId >rewrite-spring</artifactId >
117
- <version >6.0.1</version >
118
- </dependency >
119
- </dependencies >
120
100
</plugin >
121
101
</plugins >
122
102
</build >
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public class GreetingController {
13
13
private final AtomicLong counter = new AtomicLong ();
14
14
15
15
@ GetMapping ("/greeting" )
16
- public Greeting greeting (@ RequestParam (value = "name" , defaultValue = "World" ) String name ) {
17
- return new Greeting (counter .incrementAndGet (), String . format ( template , name ));
16
+ public Greeting greeting (@ RequestParam (defaultValue = "World" ) String name ) {
17
+ return new Greeting (counter .incrementAndGet (), template . formatted ( name ));
18
18
}
19
19
}
You can’t perform that action at this time.
0 commit comments