Skip to content

Commit cc1fd82

Browse files
committed
Remove unnecessary code from samples
Remove code that is not necessary to demonstrate Spring Session functionality and is not compatible with the Java 17 / Jakarta EE 9 upgrades. Issue gh-1949
1 parent fc5f875 commit cc1fd82

File tree

18 files changed

+1
-75
lines changed

18 files changed

+1
-75
lines changed

spring-session-samples/gradle/dependency-management.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,5 @@ dependencyManagement {
1818
dependency 'org.webjars:knockout:3.5.1'
1919
dependency 'org.webjars:sockjs-client:1.5.1'
2020
dependency 'org.webjars:stomp-websocket:2.3.4'
21-
dependency 'org.webjars:webjars-taglib:0.3'
2221
}
2322
}

spring-session-samples/spring-session-sample-javaconfig-custom-cookie/spring-session-sample-javaconfig-custom-cookie.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ dependencies {
77
implementation project(':spring-session-data-redis')
88
implementation "org.springframework:spring-web"
99
implementation "io.lettuce:lettuce-core"
10-
implementation "org.webjars:bootstrap"
11-
implementation "org.webjars:webjars-taglib"
1210
implementation "org.slf4j:slf4j-api"
1311
implementation "org.slf4j:jcl-over-slf4j"
1412
implementation "org.slf4j:log4j-over-slf4j"

spring-session-samples/spring-session-sample-javaconfig-custom-cookie/src/main/webapp/index.jsp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
2-
<%@ taglib prefix="wj" uri="http://www.webjars.org/tags" %>
32
<!DOCTYPE html>
43
<html lang="en">
54
<head>
65
<title>Session Attributes</title>
7-
<wj:locate path="bootstrap.min.css" relativeTo="META-INF/resources" var="bootstrapCssLocation"/>
8-
<link rel="stylesheet" href="<c:url value="${bootstrapCssLocation}"/>">
96
<style type="text/css">
107
body {
118
padding: 1em;

spring-session-samples/spring-session-sample-javaconfig-hazelcast/spring-session-sample-javaconfig-hazelcast.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ dependencies {
99
implementation "org.springframework:spring-web"
1010
implementation "org.springframework.security:spring-security-config"
1111
implementation "org.springframework.security:spring-security-web"
12-
implementation "org.webjars:bootstrap"
13-
implementation "org.webjars:webjars-taglib"
1412
implementation "com.hazelcast:hazelcast"
1513
implementation "org.slf4j:slf4j-api"
1614
implementation "org.slf4j:jcl-over-slf4j"

spring-session-samples/spring-session-sample-javaconfig-hazelcast/src/main/webapp/index.jsp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
2-
<%@ taglib prefix="wj" uri="http://www.webjars.org/tags" %>
32
<!DOCTYPE html>
43
<html lang="en">
54
<head>
65
<title>Secured Content</title>
7-
<wj:locate path="bootstrap.min.css" relativeTo="META-INF/resources" var="bootstrapCssLocation"/>
8-
<link rel="stylesheet" href="<c:url value="${bootstrapCssLocation}"/>">
96
<style type="text/css">
107
body {
118
padding: 1em;

spring-session-samples/spring-session-sample-javaconfig-jdbc/spring-session-sample-javaconfig-jdbc.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ plugins {
66
dependencies {
77
implementation project(':spring-session-jdbc')
88
implementation "org.springframework:spring-web"
9-
implementation "org.webjars:bootstrap"
10-
implementation "org.webjars:webjars-taglib"
119
implementation "com.h2database:h2"
1210
implementation "org.slf4j:slf4j-api"
1311
implementation "org.slf4j:jcl-over-slf4j"

spring-session-samples/spring-session-sample-javaconfig-jdbc/src/main/java/sample/H2ConsoleInitializer.java

Lines changed: 0 additions & 32 deletions
This file was deleted.

spring-session-samples/spring-session-sample-javaconfig-jdbc/src/main/webapp/index.jsp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
2-
<%@ taglib prefix="wj" uri="http://www.webjars.org/tags" %>
32
<!DOCTYPE html>
43
<html lang="en">
54
<head>
65
<title>Session Attributes</title>
7-
<wj:locate path="bootstrap.min.css" relativeTo="META-INF/resources" var="bootstrapCssLocation"/>
8-
<link rel="stylesheet" href="<c:url value="${bootstrapCssLocation}"/>">
96
<style type="text/css">
107
body {
118
padding: 1em;

spring-session-samples/spring-session-sample-javaconfig-redis/spring-session-sample-javaconfig-redis.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ dependencies {
77
implementation project(':spring-session-data-redis')
88
implementation "org.springframework:spring-web"
99
implementation "io.lettuce:lettuce-core"
10-
implementation "org.webjars:bootstrap"
11-
implementation "org.webjars:webjars-taglib"
1210
implementation "org.slf4j:slf4j-api"
1311
implementation "org.slf4j:jcl-over-slf4j"
1412
implementation "org.slf4j:log4j-over-slf4j"

spring-session-samples/spring-session-sample-javaconfig-redis/src/main/webapp/index.jsp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
2-
<%@ taglib prefix="wj" uri="http://www.webjars.org/tags" %>
32
<!DOCTYPE html>
43
<html lang="en">
54
<head>
65
<title>Session Attributes</title>
7-
<wj:locate path="bootstrap.min.css" relativeTo="META-INF/resources" var="bootstrapCssLocation"/>
8-
<link rel="stylesheet" href="<c:url value="${bootstrapCssLocation}"/>">
96
<style type="text/css">
107
body {
118
padding: 1em;

0 commit comments

Comments
 (0)