This commit is contained in:
Anshul BANSAL
2020-01-18 20:30:28 +02:00
parent 2ad996eaa3
commit 6ab8aeb67d
23 changed files with 5 additions and 998 deletions
@@ -1,17 +0,0 @@
package com.baeldung.openliberty.rest.consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
@RegisterRestClient(configKey = "personClient", baseUri = "http://localhost:9080/")
public interface PersonClient {
@GET
@Path("/api/person")
@Produces(MediaType.APPLICATION_JSON)
public String getPerson();
}
@@ -2,11 +2,11 @@
<featureManager>
<feature>mpHealth-2.0</feature>
<feature>servlet-4.0</feature>
<feature>jaxrs-2.1</feature>
<!-- <feature>jaxrs-2.1</feature>
<feature>jsonp-1.1</feature>
<feature>jsonb-1.0</feature>
<feature>cdi-2.0</feature>
<feature>jpa-2.2</feature>
<feature>jpa-2.2</feature> -->
</featureManager>
<webApplication location="open-liberty.war" contextRoot="/" />
@@ -15,14 +15,14 @@
<httpEndpoint host="*" httpPort="${default.http.port}" httpsPort="${default.https.port}" id="defaultHttpEndpoint" />
<library id="derbyJDBCLib">
<!-- <library id="derbyJDBCLib">
<fileset dir="${shared.resource.dir}" includes="derby*.jar"/>
</library>
<!-- Datasource Configuration -->
Datasource Configuration
<dataSource id="jpadatasource" jndiName="jdbc/jpadatasource">
<jdbcDriver libraryRef="derbyJDBCLib" />
<properties.derby.embedded databaseName="libertyDB" createDatabase="create" />
</dataSource>
</dataSource> -->
</server>