Commit b1f20a97 authored by femiadeyemi's avatar femiadeyemi
Browse files

replace tomcat with jetty server

Motivation:

Modification:

- exclude tomcat and add jetty to the dependency
- remove spring-webmvc

Result:

Jetty server is use in place of tomcat

Target: master
parent 28d409e0
Pipeline #45351 failed with stages
in 5 minutes and 27 seconds
......@@ -16,7 +16,6 @@
<properties>
<java.version>11</java.version>
<version.spring-webmvc>5.2.6.RELEASE</version.spring-webmvc>
<dependency-check-maven.version>5.3.2</dependency-check-maven.version>
<dependency-check-maven.cvss-threshold>8</dependency-check-maven.cvss-threshold>
<version.helmholtz-marketplace-webapp>0.0.1</version.helmholtz-marketplace-webapp>
......@@ -40,6 +39,18 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jetty</artifactId>
</dependency>
<dependency>
......@@ -54,12 +65,6 @@
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${version.spring-webmvc}</version>
</dependency>
<dependency>
<groupId>de.helmholtz.marketplace</groupId>
<artifactId>helmholtz-marketplace-webapp</artifactId>
......
......@@ -24,8 +24,8 @@ public class HelmholtzMarketServerController
}
@GetMapping("/tokens")
public JsonNode getAccessToken(
OAuth2AuthenticationToken authentication, HttpServletResponse response) throws IOException
public JsonNode getAccessToken(OAuth2AuthenticationToken authentication,
HttpServletResponse response) throws IOException
{
if (authentication == null) {
response.sendError(HttpServletResponse.SC_UNAUTHORIZED, "OAuth2AuthenticationToken is null");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment