Improved project
This commit is contained in:
parent
1ccbc61b1c
commit
efff6efe0d
|
@ -3,10 +3,8 @@
|
|||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
|
||||
version="4.0">
|
||||
<display-name>Helloword Smartgears4 Service</display-name>
|
||||
<description>
|
||||
A gcube service - smartgears 4
|
||||
</description>
|
||||
<display-name>${project.name}</display-name>
|
||||
<description>${project.description}</description>
|
||||
<servlet>
|
||||
<servlet-name>helloword</servlet-name>
|
||||
<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
|
3
pom.xml
3
pom.xml
|
@ -12,7 +12,8 @@
|
|||
<artifactId>hello-world-service</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<name>Hello World Service</name>
|
||||
<description>Hello World Service is used as reference project template for Smartgears 4 based services. DO NOT use tabs of new lines here otherwise it corrupts application.yaml file</description>
|
||||
<!-- DO NOT use tabs of new lines in description otherwise it corrupts application.yaml file -->
|
||||
<description>Hello World Service is used as reference project template for Smartgears 4 based services.</description>
|
||||
<packaging>war</packaging>
|
||||
|
||||
<organization>
|
||||
|
|
|
@ -38,13 +38,13 @@ public class ExcludeAuthorizationService {
|
|||
@GET
|
||||
@Path("bad-request")
|
||||
public String badRequest() throws WebApplicationException {
|
||||
throw new BadRequestException();
|
||||
throw new BadRequestException("Your request is not valid");
|
||||
}
|
||||
|
||||
@GET
|
||||
@Path("not-found")
|
||||
public String notFound() throws WebApplicationException {
|
||||
throw new NotFoundException();
|
||||
throw new NotFoundException("Not found sorry");
|
||||
}
|
||||
|
||||
@PURGE
|
||||
|
|
Loading…
Reference in New Issue