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

-1
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

-2
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

-3
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

-2
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

-3
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

-2
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

-32
This file was deleted.

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

-3
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

-2
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

-3
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-security/spring-session-sample-javaconfig-security.gradle

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ dependencies {
99
implementation "org.springframework.security:spring-security-config"
1010
implementation "org.springframework.security:spring-security-web"
1111
implementation "io.lettuce:lettuce-core"
12-
implementation "org.webjars:bootstrap"
13-
implementation "org.webjars:webjars-taglib"
1412
implementation "org.slf4j:slf4j-api"
1513
implementation "org.slf4j:jcl-over-slf4j"
1614
implementation "org.slf4j:log4j-over-slf4j"

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

-3
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-misc-hazelcast/spring-session-sample-misc-hazelcast.gradle

+1-4
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,14 @@ plugins {
55

66
dependencies {
77
implementation project(':spring-session-core')
8-
implementation "org.webjars:bootstrap"
9-
implementation "org.webjars:webjars-taglib"
108
implementation "com.hazelcast:hazelcast"
11-
implementation "jakarta.servlet.jsp.jstl:jakarta.servlet.jsp.jstl-api"
12-
implementation "org.apache.taglibs:taglibs-standard-jstlel"
139
implementation "org.slf4j:slf4j-api"
1410
implementation "org.slf4j:jcl-over-slf4j"
1511
implementation "org.slf4j:log4j-over-slf4j"
1612
implementation "ch.qos.logback:logback-classic"
1713

1814
providedCompile "jakarta.servlet:jakarta.servlet-api"
15+
providedCompile "org.glassfish.web:jakarta.servlet.jsp.jstl"
1916

2017
testImplementation "org.assertj:assertj-core"
2118
testImplementation "org.junit.jupiter:junit-jupiter-api"

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

-3
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-xml-jdbc/spring-session-sample-xml-jdbc.gradle

-2
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-xml-jdbc/src/main/webapp/index.jsp

-3
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-xml-redis/spring-session-sample-xml-redis.gradle

-2
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-xml-redis/src/main/webapp/index.jsp

-3
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)