Roopesh Rana wrote:
Daniel Demesmaecker wrote:The problem lies in your sessionfactory.
Why don't you simply use Spring Boot, it will do all the configuration for you.
Add the spring-boot-starter dependency, remove your dispatcherservlet, web.xml and application-context.xml and put the following application.properties in your resource folder:
And that should do it
Daniel Demesmaecker wrote: I can't use spring boot, I need to done it in same way
Daniel Demesmaecker wrote:The problem lies in your sessionfactory.
Why don't you simply use Spring Boot, it will do all the configuration for you.
Add the spring-boot-starter dependency, remove your dispatcherservlet, web.xml and application-context.xml and put the following application.properties in your resource folder:
And that should do it
I can't use spring boot, I need to done it in same way
Wayan Saryada wrote:You need to use / import java.util.Date instead of java.sql.Date in your code.
Roopesh Rana wrote: I used java.util.Date as well as java.sql.Date also
Wayan Saryada wrote:Hi Roopesh,
The exception happened because your string date is not valid according to your SimpleDateFormat pattern.