Skip to content

Commit 904e500

Browse files
committed
Update to Spring 3.3.8 and fix README
1 parent f6d99f8 commit 904e500

File tree

3 files changed

+5
-25
lines changed

3 files changed

+5
-25
lines changed

spring-cli/projects/obaas/README.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
== Basic Spring Web Application for Oracle Backend for Spring Boot and Microservices
22

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]
44
and includes configuration for the well-known endpoints provided by the platform.
55
The web service will accept HTTP GET requests at `http://localhost:8080/greeting`.
66

@@ -37,7 +37,7 @@ response, as the following listing shows:
3737

3838
[source,bash]
3939
----
40-
./mvnw spring-boot:run -Dspring-boot.run.profiles=local
40+
./mvnw spring-boot:run -Dspring-boot.run.profiles=local ????
4141
----
4242

4343
Then access the endpoint

spring-cli/projects/obaas/pom.xml

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.springframework.boot</groupId>
77
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>3.2.11</version>
8+
<version>3.3.8</version>
99
<relativePath/> <!-- lookup parent from repository -->
1010
</parent>
1111

@@ -60,7 +60,6 @@
6060
<dependency>
6161
<groupId>org.liquibase</groupId>
6262
<artifactId>liquibase-core</artifactId>
63-
<version>${liquibase.version}</version>
6463
</dependency>
6564

6665
<!-- This enables Spring Actuator which provides monitoring, metrics, etc. -->
@@ -98,25 +97,6 @@
9897
<plugin>
9998
<groupId>org.liquibase</groupId>
10099
<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>
120100
</plugin>
121101
</plugins>
122102
</build>

spring-cli/projects/obaas/src/main/java/com/example/restservice/greeting/GreetingController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class GreetingController {
1313
private final AtomicLong counter = new AtomicLong();
1414

1515
@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));
1818
}
1919
}

0 commit comments

Comments
 (0)