Skip to content

Commit aa0e992

Browse files
Release 1.0.1 (For Spring Boot 2.6.0)
1 parent 582967d commit aa0e992

File tree

13 files changed

+52
-13
lines changed

13 files changed

+52
-13
lines changed

Diff for: lemon-demo-jpa/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<parent>
1515
<groupId>com.naturalprogrammer</groupId>
1616
<artifactId>spring-lemon</artifactId>
17-
<version>1.0.0.RC7</version>
17+
<version>1.0.1</version>
1818
</parent>
1919

2020
<dependencies>

Diff for: lemon-demo-jpa/src/test/java/com/naturalprogrammer/spring/lemondemo/AbstractMvcTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"lemon.recaptcha.sitekey="
3131
})
3232
@AutoConfigureMockMvc
33-
@AutoConfigureTestDatabase(connection = EmbeddedDatabaseConnection.HSQL)
33+
@AutoConfigureTestDatabase(connection = EmbeddedDatabaseConnection.HSQLDB)
3434
@Sql({"/test-data/initialize.sql", "/test-data/finalize.sql"})
3535
public abstract class AbstractMvcTests {
3636

Diff for: lemon-demo-reactive/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<parent>
1414
<groupId>com.naturalprogrammer</groupId>
1515
<artifactId>spring-lemon</artifactId>
16-
<version>1.0.0.RC7</version>
16+
<version>1.0.1</version>
1717
</parent>
1818

1919
<dependencies>

Diff for: pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.naturalprogrammer</groupId>
88
<artifactId>spring-lemon</artifactId>
9-
<version>1.0.0.RC7</version>
9+
<version>1.0.1</version>
1010
<packaging>pom</packaging>
1111

1212
<name>${project.groupId}:${project.artifactId}</name>
@@ -40,7 +40,7 @@
4040
<parent>
4141
<groupId>org.springframework.boot</groupId>
4242
<artifactId>spring-boot-starter-parent</artifactId>
43-
<version>2.5.2</version>
43+
<version>2.6.0</version>
4444
<relativePath /> <!-- lookup parent from repository -->
4545
</parent>
4646

Diff for: spring-lemon-commons-jpa/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<parent>
3939
<groupId>com.naturalprogrammer</groupId>
4040
<artifactId>spring-lemon</artifactId>
41-
<version>1.0.0.RC7</version>
41+
<version>1.0.1</version>
4242
</parent>
4343

4444
<dependencies>

Diff for: spring-lemon-commons-mongo/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<parent>
3939
<groupId>com.naturalprogrammer</groupId>
4040
<artifactId>spring-lemon</artifactId>
41-
<version>1.0.0.RC7</version>
41+
<version>1.0.1</version>
4242
</parent>
4343

4444
<dependencies>

Diff for: spring-lemon-commons-reactive/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<parent>
3939
<groupId>com.naturalprogrammer</groupId>
4040
<artifactId>spring-lemon</artifactId>
41-
<version>1.0.0.RC7</version>
41+
<version>1.0.1</version>
4242
</parent>
4343

4444
<dependencies>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* Copyright 2020-2021 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this artifact or file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.naturalprogrammer.spring.lemon.commonsreactive.exceptions.handlers;
18+
19+
import com.naturalprogrammer.spring.lemon.exceptions.handlers.AbstractExceptionHandler;
20+
import org.springframework.core.Ordered;
21+
import org.springframework.core.annotation.Order;
22+
import org.springframework.http.HttpStatus;
23+
import org.springframework.security.authentication.InsufficientAuthenticationException;
24+
import org.springframework.stereotype.Component;
25+
26+
@Component
27+
@Order(Ordered.LOWEST_PRECEDENCE)
28+
public class InsufficientAuthenticationExceptionHandler extends AbstractExceptionHandler<InsufficientAuthenticationException> {
29+
30+
public InsufficientAuthenticationExceptionHandler() {
31+
super(InsufficientAuthenticationException.class);
32+
log.info("Created");
33+
}
34+
35+
@Override
36+
public HttpStatus getStatus(InsufficientAuthenticationException ex) {
37+
return HttpStatus.FORBIDDEN;
38+
}
39+
}

Diff for: spring-lemon-commons-web/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<parent>
3939
<groupId>com.naturalprogrammer</groupId>
4040
<artifactId>spring-lemon</artifactId>
41-
<version>1.0.0.RC7</version>
41+
<version>1.0.1</version>
4242
</parent>
4343

4444
<dependencies>

Diff for: spring-lemon-commons/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<parent>
4040
<groupId>com.naturalprogrammer</groupId>
4141
<artifactId>spring-lemon</artifactId>
42-
<version>1.0.0.RC7</version>
42+
<version>1.0.1</version>
4343
</parent>
4444

4545
<dependencies>

Diff for: spring-lemon-exceptions/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<parent>
4040
<groupId>com.naturalprogrammer</groupId>
4141
<artifactId>spring-lemon</artifactId>
42-
<version>1.0.0.RC7</version>
42+
<version>1.0.1</version>
4343
</parent>
4444

4545
<dependencies>

Diff for: spring-lemon-jpa/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<parent>
3939
<groupId>com.naturalprogrammer</groupId>
4040
<artifactId>spring-lemon</artifactId>
41-
<version>1.0.0.RC7</version>
41+
<version>1.0.1</version>
4242
</parent>
4343

4444
<dependencies>

Diff for: spring-lemon-reactive/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<parent>
3939
<groupId>com.naturalprogrammer</groupId>
4040
<artifactId>spring-lemon</artifactId>
41-
<version>1.0.0.RC7</version>
41+
<version>1.0.1</version>
4242
</parent>
4343

4444
<dependencies>

0 commit comments

Comments
 (0)