File tree Expand file tree Collapse file tree 5 files changed +15
-11
lines changed
spring-security-mvc-session Expand file tree Collapse file tree 5 files changed +15
-11
lines changed Original file line number Diff line number Diff line change 8787 <dependency >
8888 <groupId >javax.servlet</groupId >
8989 <artifactId >javax.servlet-api</artifactId >
90- <version >3.0.1 </version >
90+ <version >${javax.servlet.version} </version >
9191 <scope >provided</scope >
9292 </dependency >
9393
9494 <dependency >
9595 <groupId >javax.servlet</groupId >
9696 <artifactId >jstl</artifactId >
97- <version >1.2 </version >
97+ <version >${jstl.version} </version >
9898 <scope >runtime</scope >
9999 </dependency >
100100
103103 <dependency >
104104 <groupId >com.codahale.metrics</groupId >
105105 <artifactId >metrics-core</artifactId >
106- <version >3.0.1 </version >
106+ <version >${codahale.metrics.version} </version >
107107 </dependency >
108108
109109 <!-- logging -->
243243
244244 <!-- various -->
245245 <hibernate-validator .version>5.2.2.Final</hibernate-validator .version>
246-
246+ <codahale .metrics.version>3.0.1</codahale .metrics.version>
247+ <jstl .version>1.2</jstl .version>
248+ <javax .servlet.version>3.0.1</javax .servlet.version>
249+
247250 <!-- util -->
248251 <guava .version>19.0</guava .version>
249252 <commons-lang3 .version>3.4</commons-lang3 .version>
Original file line number Diff line number Diff line change 1212 <intercept-url pattern =" /login*" access =" permitAll" />
1313 <intercept-url pattern =" /**" access =" isAuthenticated()" />
1414
15+ <csrf disabled =" true" />
16+
1517 <form-login login-page =' /login.html' authentication-success-handler-ref =" myAuthenticationSuccessHandler" authentication-failure-url =" /login.html?error=true" />
1618
1719 <logout delete-cookies =" JSESSIONID" />
18-
1920 <remember-me key =" uniqueAndSecret" token-validity-seconds =" 86400" />
2021
2122 <session-management invalid-session-url =" /invalidSession.html" >
Original file line number Diff line number Diff line change 1616 <br />
1717 </security:authorize >
1818
19- <a href =" <c:url value=" /j_spring_security_logout " />" >Logout</a >
19+ <a href =" <c:url value=" /logout " />" >Logout</a >
2020
2121</body >
2222</html >
Original file line number Diff line number Diff line change 1616 <br />
1717 </security:authorize >
1818
19- <a href =" <c:url value=" /j_spring_security_logout " />" >Logout</a >
19+ <a href =" <c:url value=" /logout " />" >Logout</a >
2020
2121</body >
2222</html >
Original file line number Diff line number Diff line change 44<body >
55 <h1 >Login</h1 >
66
7- <form name =' f' action =" j_spring_security_check " method =' POST' >
7+ <form name =' f' action =" login " method =' POST' >
88
99 <table >
1010 <tr >
1111 <td >User:</td >
12- <td ><input type =' text' name =' j_username ' value =' ' ></td >
12+ <td ><input type =' text' name =' username ' value =' ' ></td >
1313 </tr >
1414 <tr >
1515 <td >Password:</td >
16- <td ><input type =' password' name =' j_password ' /></td >
16+ <td ><input type =' password' name =' password ' /></td >
1717 </tr >
1818 <tr >
1919 <td >Remember Me:</td >
20- <td ><input type =" checkbox" name =" _spring_security_remember_me " /></td >
20+ <td ><input type =" checkbox" name =" remember_me " /></td >
2121 </tr >
2222 <tr >
2323 <td ><input name =" submit" type =" submit" value =" submit" /></td >
You can’t perform that action at this time.
0 commit comments