aspose file tools
The moose likes Spring and the fly likes Steps to configure and use Mysql database with Spring MVC 3.0 without using hibernate. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Reply Bookmark "Steps to configure and use Mysql database with Spring MVC 3.0 without using hibernate." Watch "Steps to configure and use Mysql database with Spring MVC 3.0 without using hibernate." New topic
Author

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

Prashant Chindhade
Ranch Hand

Joined: Jan 19, 2011
Posts: 77
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

Joined: Mar 07, 2010
Posts: 1282

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.


[How To Ask Questions][Read before you PM me]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Steps to configure and use Mysql database with Spring MVC 3.0 without using hibernate.
 
Similar Threads
developing a Spring Framework MVC
I face some problem with any kind of jee framework. Think my learning process is not ok.
How to debug Spring MVC Application
Which framework to use in web layer?
The Validator is not Validating!!