cleanup and upgrade

This commit is contained in:
DOHA 2016-01-07 15:17:26 +02:00
parent 6fd951d795
commit 70be232c5a
8 changed files with 30 additions and 25 deletions

View File

@ -17,7 +17,7 @@
</tr> </tr>
<tr> <tr>
<td>Remember Me:</td> <td>Remember Me:</td>
<td><input type="checkbox" name="remember_me" /></td> <td><input type="checkbox" name="remember-me" /></td>
</tr> </tr>
<tr> <tr>
<td><input name="submit" type="submit" value="submit" /></td> <td><input name="submit" type="submit" value="submit" /></td>

View File

@ -93,14 +93,14 @@
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId> <artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version> <version>${javax.servlet.version}</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId> <artifactId>jstl</artifactId>
<version>1.2</version> <version>${jstl.version}</version>
<scope>runtime</scope> <scope>runtime</scope>
</dependency> </dependency>
@ -109,13 +109,13 @@
<dependency> <dependency>
<groupId>com.h2database</groupId> <groupId>com.h2database</groupId>
<artifactId>h2</artifactId> <artifactId>h2</artifactId>
<version>1.4.178</version> <version>${h2.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>postgresql</groupId> <groupId>postgresql</groupId>
<artifactId>postgresql</artifactId> <artifactId>postgresql</artifactId>
<version>9.1-901.jdbc4</version> <version>${postgresql.version}</version>
<scope>runtime</scope> <scope>runtime</scope>
</dependency> </dependency>
@ -260,12 +260,15 @@
<properties> <properties>
<!-- Spring --> <!-- Spring -->
<org.springframework.version>4.1.4.RELEASE</org.springframework.version> <org.springframework.version>4.2.4.RELEASE</org.springframework.version>
<org.springframework.security.version>3.2.5.RELEASE</org.springframework.security.version> <org.springframework.security.version>4.0.3.RELEASE</org.springframework.security.version>
<!-- persistence --> <!-- persistence -->
<hibernate.version>4.3.10.Final</hibernate.version> <hibernate.version>4.3.11.Final</hibernate.version>
<mysql-connector-java.version>5.1.35</mysql-connector-java.version> <mysql-connector-java.version>5.1.37</mysql-connector-java.version>
<h2.version>1.4.190</h2.version>
<postgresql.version>9.1-901.jdbc4</postgresql.version>
<!-- logging --> <!-- logging -->
<org.slf4j.version>1.7.12</org.slf4j.version> <org.slf4j.version>1.7.12</org.slf4j.version>
@ -273,9 +276,11 @@
<!-- various --> <!-- various -->
<hibernate-validator.version>5.1.3.Final</hibernate-validator.version> <hibernate-validator.version>5.1.3.Final</hibernate-validator.version>
<javax.servlet.version>3.0.1</javax.servlet.version>
<jstl.version>1.2</jstl.version>
<!-- util --> <!-- util -->
<guava.version>18.0</guava.version> <guava.version>19.0</guava.version>
<commons-lang3.version>3.4</commons-lang3.version> <commons-lang3.version>3.4</commons-lang3.version>
<!-- testing --> <!-- testing -->

View File

@ -7,11 +7,11 @@
xmlns:util="http://www.springframework.org/schema/util" xmlns:util="http://www.springframework.org/schema/util"
xmlns:jdbc="http://www.springframework.org/schema/jdbc" xmlns:jdbc="http://www.springframework.org/schema/jdbc"
xsi:schemaLocation=" xsi:schemaLocation="
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.2.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-4.0.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.1.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.1.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd
http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.1.xsd"> http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.2.xsd">
<http use-expressions="true"> <http use-expressions="true">
@ -35,9 +35,9 @@
<!-- Persistent Remember Me Service --> <!-- Persistent Remember Me Service -->
<beans:bean id="rememberMeAuthenticationProvider" class="org.springframework.security.web.authentication.rememberme.PersistentTokenBasedRememberMeServices"> <beans:bean id="rememberMeAuthenticationProvider" class="org.springframework.security.web.authentication.rememberme.PersistentTokenBasedRememberMeServices">
<beans:property name="key" value="myAppKey" /> <beans:constructor-arg value="myAppKey" />
<beans:property name="tokenRepository" ref="jdbcTokenRepository" /> <beans:constructor-arg ref="jdbcTokenRepository" />
<beans:property name="userDetailsService" ref="myUserDetailsService" /> <beans:constructor-arg ref="myUserDetailsService" />
</beans:bean> </beans:bean>
<!-- Uses a database table to maintain a set of persistent login data --> <!-- Uses a database table to maintain a set of persistent login data -->

View File

@ -16,7 +16,7 @@
<br/> <br/>
</security:authorize> </security:authorize>
<a href="<c:url value="/j_spring_security_logout" />">Logout</a> <a href="<c:url value="/logout" />">Logout</a>
</body> </body>
</html> </html>

View File

@ -16,7 +16,7 @@
<br /> <br />
</security:authorize> </security:authorize>
<a href="<c:url value="/j_spring_security_logout" />">Logout</a> <a href="<c:url value="/logout" />">Logout</a>
</body> </body>
</html> </html>

View File

@ -17,20 +17,20 @@
<body> <body>
<h1>Login</h1> <h1>Login</h1>
<form name='f' action="j_spring_security_check" method='POST'> <form name='f' action="login" method='POST'>
<table> <table>
<tr> <tr>
<td>User:</td> <td>User:</td>
<td><input type='text' name='j_username' value=''></td> <td><input type='text' name='username' value=''></td>
</tr> </tr>
<tr> <tr>
<td>Password:</td> <td>Password:</td>
<td><input type='password' name='j_password' /></td> <td><input type='password' name='password' /></td>
</tr> </tr>
<tr> <tr>
<td>Remember Me:</td> <td>Remember Me:</td>
<td><input type="checkbox" name="_spring_security_remember_me" /></td> <td><input type="checkbox" name="remember-me" /></td>
</tr> </tr>
<tr> <tr>
<td><input name="submit" type="submit" value="submit" /></td> <td><input name="submit" type="submit" value="submit" /></td>

View File

@ -17,7 +17,7 @@
</tr> </tr>
<tr> <tr>
<td>Remember Me:</td> <td>Remember Me:</td>
<td><input type="checkbox" name="remember_me" /></td> <td><input type="checkbox" name="remember-me" /></td>
</tr> </tr>
<tr> <tr>
<td><input name="submit" type="submit" value="submit" /></td> <td><input name="submit" type="submit" value="submit" /></td>

View File

@ -10,7 +10,7 @@
<parent> <parent>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId> <artifactId>spring-boot-starter-parent</artifactId>
<version>1.2.7.RELEASE</version> <version>1.3.1.RELEASE</version>
</parent> </parent>
<modules> <modules>