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 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 ]
44and includes configuration for the well-known endpoints provided by the platform.
55The 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
4343Then access the endpoint
Original file line number Diff line number Diff line change 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
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. -->
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 >
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments