Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I solved my problem</p> <ul> <li>First, I changed the location of @Repository("employeeDAOImpl")annotation.</li> <li><p>I changed SQL driver to com.jolbox.bonecp.BoneCPDataSource now my datasourse config looks like this:</p> <pre><code>&lt;bean id="dataSource" class="com.jolbox.bonecp.BoneCPDataSource" destroy-method="close"&gt; &lt;property name="driverClass" value="${jdbc.driverClassName}"/&gt; &lt;property name="jdbcUrl" value="${jdbc.url}"/&gt; &lt;property name="username" value="${jdbc.username}"/&gt; &lt;property name="password" value="${jdbc.password}"/&gt; &lt;property name="idleConnectionTestPeriod" value="60"/&gt; &lt;property name="idleMaxAge" value="240"/&gt; &lt;property name="maxConnectionsPerPartition" value="30"/&gt; &lt;property name="minConnectionsPerPartition" value="10"/&gt; &lt;property name="partitionCount" value="3"/&gt; &lt;property name="acquireIncrement" value="5"/&gt; &lt;property name="statementsCacheSize" value="100"/&gt; &lt;property name="releaseHelperThreads" value="3"/&gt; &lt;/bean&gt; </code></pre></li> <li><p>changed Spring schema to:</p> <p><code>&lt;tx:annotation-driven transaction-manager="transactionManager"/&gt;</code> <code>&lt;mvc:annotation-driven /&gt;</code></p></li> <li><p>in <code>UserAuthentication</code> class I added check for a <code>null</code></p> <p>if (entity == null) { throw new BadCredentialsException("User does not exists!"); }</p></li> <li><p>added to <code>pom.xml</code> maven dep. for new sql driver:</p> <p> com.jolbox bonecp 0.8.0-rc1 </p></li> </ul> <p>So my authentication is working perfect now =))</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload