Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Steps to configure and use Mysql database with Spring MVC 3.0 without using hibernate.

 
Prashant Chindhade
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone
I am new to spring MVC and I am using spring MVC 3.0.4.

I need to use jdbc with mysql server.

can anyone provide me link for step by step tutorial for configuration. it will be helpful for me.

thanks
Prashant
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
assuming you are using XML config




You could shorten that up a bit by using the p and c namespaces but it gives you the idea. Put your properties in a file named jdbc.properties on the classpath.

Once you have that you can @Autowire in you jdbcTemplate and use that to execute queries.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic