Skip to content

Commit 21deeea

Browse files
committed
2.3.9 Fixed #79, Fixed #80, Fixed #81, Fixed #100, Fixed #101
1 parent e6b4099 commit 21deeea

File tree

5 files changed

+18
-24
lines changed

5 files changed

+18
-24
lines changed

etc/TODO.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ Fixed #32, Fixed #36, Fixed #89, Fixed #83, Fixed #84, Fixed #85, Fixed #88, Fi
1111

1212

1313
# 2.3.8
14-
Fixed #79, Fixed #80, Fixed #81, Fixed #100
14+
Fixed #79, Fixed #80, Fixed #81, Fixed #100, Fixed #101
1515

1616

1717
## BUGS:
18-
* ERROR: relation "spring_session" does not exist
18+
* #101 ERROR: relation "spring_session" does not exist
1919

2020
````
2121
Unexpected error occurred in scheduled task
@@ -58,7 +58,9 @@ Caused by: org.postgresql.util.PSQLException: ERROR: relation "spring_session" d
5858
5959
````
6060

61-
* asdf
62-
63-
61+
### Read about Spring-Session:
62+
* [Spring Session with JDBC](https://www.baeldung.com/spring-session-jdbc)
63+
* [Spring Session with JDBC on Github](https://github.com/eugenp/tutorials/tree/master/spring-session/spring-session-jdbc)
64+
* [Spring Session with JDBC](https://www.javadevjournal.com/spring/spring-session-with-jdbc/)
6465

66+
# 2.3.9 Fixed #79, Fixed #80, Fixed #81, Fixed #100, Fixed #101

pom.xml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>org.woehlke</groupId>
55
<artifactId>simpleworklist</artifactId>
6-
<version>2.3.8</version>
6+
<version>2.3.9</version>
77
<packaging>jar</packaging>
88
<parent>
99
<groupId>org.springframework.boot</groupId>
@@ -65,15 +65,6 @@
6565

6666
<dependencyManagement>
6767
<dependencies>
68-
<!--
69-
<dependency>
70-
<groupId>org.springframework.session</groupId>
71-
<artifactId>spring-session-bom</artifactId>
72-
<version>Corn-SR2</version>
73-
<type>pom</type>
74-
<scope>import</scope>
75-
</dependency>
76-
-->
7768
<dependency>
7869
<groupId>org.webjars</groupId>
7970
<artifactId>font-awesome</artifactId>
@@ -350,7 +341,7 @@
350341
</activation>
351342
<build>
352343
<finalName>simpleworklist</finalName>
353-
<defaultGoal>clean install dependency:sources dependency:resolve dependency:resolve-plugins dependency:tree site spring-boot:run</defaultGoal>
344+
<defaultGoal>clean install dependency:sources dependency:resolve dependency:resolve-plugins dependency:tree spring-boot:run</defaultGoal>
354345
<plugins>
355346
<plugin>
356347
<groupId>org.springframework.boot</groupId>
@@ -856,6 +847,14 @@
856847
<artifactId>spotbugs-maven-plugin</artifactId>
857848
<version>4.0.0</version>
858849
</plugin>
850+
<plugin>
851+
<groupId>com.github.spotbugs</groupId>
852+
<artifactId>spotbugs-maven-plugin</artifactId>
853+
<version>4.0.0</version>
854+
<configuration>
855+
<!-- Optional directory to put spotbugs xml report -->
856+
</configuration>
857+
</plugin>
859858
<plugin>
860859
<groupId>org.apache.maven.plugins</groupId>
861860
<artifactId>maven-pmd-plugin</artifactId>

src/main/java/org/woehlke/simpleworklist/config/di/WebMvcConfig.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import org.springframework.mail.javamail.JavaMailSender;
1414
import org.springframework.mail.javamail.JavaMailSenderImpl;
1515
import org.springframework.scheduling.annotation.EnableAsync;
16-
import org.springframework.session.jdbc.config.annotation.web.http.EnableJdbcHttpSession;
1716
import org.springframework.validation.beanvalidation.MethodValidationPostProcessor;
1817
import org.springframework.web.servlet.LocaleResolver;
1918
import org.springframework.web.servlet.config.annotation.*;
@@ -31,7 +30,6 @@
3130
@EnableJpaAuditing
3231
@EnableWebMvc
3332
@EnableSpringDataWebSupport
34-
@EnableJdbcHttpSession
3533
@EnableJpaRepositories({
3634
"org.woehlke.simpleworklist"
3735
})

src/main/java/org/woehlke/simpleworklist/config/di/WebSecurityConfig.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import org.springframework.security.crypto.password.PasswordEncoder;
1919
import org.springframework.security.web.authentication.AuthenticationSuccessHandler;
2020
import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter;
21-
import org.springframework.session.jdbc.config.annotation.web.http.EnableJdbcHttpSession;
2221
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
2322
import org.woehlke.simpleworklist.config.ApplicationProperties;
2423
import org.woehlke.simpleworklist.user.login.LoginSuccessHandler;
@@ -30,7 +29,6 @@
3029
@EnableJpaAuditing
3130
@EnableWebMvc
3231
@EnableSpringDataWebSupport
33-
@EnableJdbcHttpSession
3432
@EnableWebSecurity
3533
@ImportAutoConfiguration({
3634
WebMvcConfig.class

src/main/resources/application.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ spring:
2727
session:
2828
store-type: jdbc
2929
jdbc:
30-
initialize-schema: ALWAYS
31-
#cleanup-cron: 0 * * * *simpleworklist *
32-
schema: 'classpath:org/springframework/session/jdbc/schema-postgresql.sql'
33-
table-name: 'spring_session'
30+
initialize-schema: always
3431
thymeleaf:
3532
cache: false
3633
main:

0 commit comments

Comments
 (0)