Skip to content

Commit f5f771d

Browse files
committed
BAEL-89 modifying the module names and changing the dependencies to be in line with what we would get from start.spring.io
1 parent 134c4ca commit f5f771d

11 files changed

Lines changed: 12 additions & 8 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@
2020
<groupId>org.springframework.boot</groupId>
2121
<artifactId>spring-boot-starter-jetty</artifactId>
2222
</dependency>
23+
2324
<dependency>
2425
<groupId>org.springframework.boot</groupId>
25-
<artifactId>spring-boot-starter-web</artifactId>
26+
<artifactId>spring-boot-starter-data-redis</artifactId>
2627
</dependency>
2728
<dependency>
2829
<groupId>org.springframework.boot</groupId>
@@ -31,11 +32,10 @@
3132
<dependency>
3233
<groupId>org.springframework.session</groupId>
3334
<artifactId>spring-session</artifactId>
34-
<version>1.2.1.RELEASE</version>
3535
</dependency>
3636
<dependency>
3737
<groupId>org.springframework.boot</groupId>
38-
<artifactId>spring-boot-starter-data-redis</artifactId>
38+
<artifactId>spring-boot-starter-web</artifactId>
3939
</dependency>
4040
</dependencies>
4141

spring-session/jetty-ex/src/main/java/com/baeldung/spring/session/tomcatex/JettyWebApplication.java renamed to spring-session/jetty-session-demo/src/main/java/com/baeldung/spring/session/tomcatex/JettyWebApplication.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,9 @@ public static void main(String[] args) {
1616
public String helloJetty() {
1717
return "hello Jetty";
1818
}
19+
20+
@RequestMapping("/test")
21+
public String lksjdf() {
22+
return "";
23+
}
1924
}

spring-session/jetty-ex/src/main/java/com/baeldung/spring/session/tomcatex/SecurityConfig.java renamed to spring-session/jetty-session-demo/src/main/java/com/baeldung/spring/session/tomcatex/SecurityConfig.java

File renamed without changes.

spring-session/jetty-ex/src/main/java/com/baeldung/spring/session/tomcatex/SessionConfig.java renamed to spring-session/jetty-session-demo/src/main/java/com/baeldung/spring/session/tomcatex/SessionConfig.java

File renamed without changes.

spring-session/jetty-ex/src/main/resources/application.properties renamed to spring-session/jetty-session-demo/src/main/resources/application.properties

File renamed without changes.

‎spring-session/pom.xml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<version>1.0.0-SNAPSHOT</version>
1515

1616
<modules>
17-
<module>jetty-ex</module>
18-
<module>tomcat-ex</module>
17+
<module>jetty-session-demo</module>
18+
<module>tomcat-session-demo</module>
1919
</modules>
2020
</project>

spring-session/tomcat-ex/pom.xml renamed to spring-session/tomcat-session-demo/pom.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<dependencies>
1919
<dependency>
2020
<groupId>org.springframework.boot</groupId>
21-
<artifactId>spring-boot-starter-web</artifactId>
21+
<artifactId>spring-boot-starter-data-redis</artifactId>
2222
</dependency>
2323
<dependency>
2424
<groupId>org.springframework.boot</groupId>
@@ -27,11 +27,10 @@
2727
<dependency>
2828
<groupId>org.springframework.session</groupId>
2929
<artifactId>spring-session</artifactId>
30-
<version>1.2.1.RELEASE</version>
3130
</dependency>
3231
<dependency>
3332
<groupId>org.springframework.boot</groupId>
34-
<artifactId>spring-boot-starter-data-redis</artifactId>
33+
<artifactId>spring-boot-starter-web</artifactId>
3534
</dependency>
3635
</dependencies>
3736

spring-session/tomcat-ex/src/main/java/com/baeldung/spring/session/tomcatex/SecurityConfig.java renamed to spring-session/tomcat-session-demo/src/main/java/com/baeldung/spring/session/tomcatex/SecurityConfig.java

File renamed without changes.

spring-session/tomcat-ex/src/main/java/com/baeldung/spring/session/tomcatex/SessionConfig.java renamed to spring-session/tomcat-session-demo/src/main/java/com/baeldung/spring/session/tomcatex/SessionConfig.java

File renamed without changes.

spring-session/tomcat-ex/src/main/java/com/baeldung/spring/session/tomcatex/TomcatWebApplication.java renamed to spring-session/tomcat-session-demo/src/main/java/com/baeldung/spring/session/tomcatex/TomcatWebApplication.java

File renamed without changes.

0 commit comments

Comments
 (0)