Skip to content

Update Spring CLI #170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions database/spring-cli/catalog/project-catalog.yml

This file was deleted.

Binary file not shown.

This file was deleted.

6 changes: 6 additions & 0 deletions spring-cli/README .md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Spring CLI integration

## Add to Spring CLI

## Build a project

11 changes: 11 additions & 0 deletions spring-cli/catalog/project-catalog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
project-repositories:
- name: "obaas"
description: "RESTful Hello World service for Oracle Backend Microservices and AI"
url: "https://github.com/oracle/spring-cloud-oci/tree/main/spring-cli/projects/obaas"
tags:
- "obaas"
- "java-17"
- "rest"
- "web"
- "boot-3.3.x"
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
== Basic Spring Web Application for Oracle Backend for Spring Boot and Microservices

This project contains a web service that can be deployed on link:https://bit.ly/oraclespringboot[Oracle Backend for Spring Boot and Microservices]
This project contains a web service that can be deployed on link:https://bit.ly/OracleAI-microservices[Oracle Backend for Microservices and AI]
and includes configuration for the well-known endpoints provided by the platform.
The web service will accept HTTP GET requests at `http://localhost:8080/greeting`.

Expand Down Expand Up @@ -37,7 +37,7 @@ response, as the following listing shows:

[source,bash]
----
./mvnw spring-boot:run -Dspring-boot.run.profiles=local
./mvnw spring-boot:run -Dspring-boot.run.profiles=local ????
----

Then access the endpoint
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.2.11</version>
<version>3.3.8</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

Expand Down Expand Up @@ -60,7 +60,6 @@
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
<version>${liquibase.version}</version>
</dependency>

<!-- This enables Spring Actuator which provides monitoring, metrics, etc. -->
Expand Down Expand Up @@ -98,7 +97,6 @@
<plugin>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-maven-plugin</artifactId>
<version>${liquibase.version}</version>
</plugin>
</plugins>
</build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class GreetingController {
private final AtomicLong counter = new AtomicLong();

@GetMapping("/greeting")
public Greeting greeting(@RequestParam(value = "name", defaultValue = "World") String name) {
return new Greeting(counter.incrementAndGet(), String.format(template, name));
public Greeting greeting(@RequestParam(defaultValue = "World") String name) {
return new Greeting(counter.incrementAndGet(), template.formatted(name));
}
}
Loading