java - How can I use JDBCTemplate from Spring JDBC in a Swing desktop application? -


I use many JDBC codes in my swing desktop application. Now I read from JDBCTemplate with Spring in Spring in Action and it looks like a good API to work with JDBC.

But Spring JDBC needs some XML configuration files for beans Can I use JDBCTemplate without these XML configuration files (for example, with annotation)? Or how can I use this JDBC template in the swing desktop application for database access?

You create a Spring @ configuration without a XML by creating aoted Java class and reference To create a configuration, create a Spring Context using the Antenna Conflict AppLogging Contex class

See a code sample.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -