Skip to content

Commit

Permalink
Merge 4fc4d42 into 48e6609
Browse files Browse the repository at this point in the history
  • Loading branch information
kkovarik committed Nov 1, 2018
2 parents 48e6609 + 4fc4d42 commit df5da08
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 19 deletions.
30 changes: 12 additions & 18 deletions pom.xml
Expand Up @@ -15,7 +15,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.1.RELEASE</version>
<version>1.5.17.RELEASE</version>
</parent>

<licenses>
Expand Down Expand Up @@ -194,7 +194,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<!-- OpenHub Spring Boot application -->
<spring-boot.version>1.5.1.RELEASE</spring-boot.version>
<spring-boot.version>1.5.17.RELEASE</spring-boot.version>
<start-class>org.openhubframework.openhub.OpenHubApplication</start-class>

<camel-version>2.18.2</camel-version>
Expand All @@ -206,7 +206,6 @@
<javamelody-version>1.65.0</javamelody-version>
<metrics-version>3.2.0</metrics-version>
<jolokia-version>1.3.5</jolokia-version>
<spring-data-commons.version>1.12.8.RELEASE</spring-data-commons.version>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -259,6 +258,16 @@
<version>${project.version}</version>
</dependency>

<!-- Spring boot dependencies -->
<!-- Note: too keep camel integration from overriding spring libraries -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>

<!-- Apache Camel -->
<dependency>
<groupId>org.apache.camel</groupId>
Expand Down Expand Up @@ -356,21 +365,6 @@
<artifactId>jsr305</artifactId>
<version>3.0.0</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-commons</artifactId>
<version>${spring-data-commons.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>${spring.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down
Expand Up @@ -116,7 +116,7 @@ public ServletListenerRegistrationBean<SessionListener> sessionListener() {

@ConditionalOnProperty(value = CorsProperties.CORS_ENABLED)
@Bean
public FilterRegistrationBean corsFilter() {
public FilterRegistrationBean corsFilterRegistrationBean() {
// it could be used also as http://docs.spring.io/spring-boot/docs/1.5.2.RELEASE/reference/htmlsingle/#boot-features-cors
// but filter approach has more options
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
Expand Down

0 comments on commit df5da08

Please sign in to comment.