Create a class to connect to any database using jdbc

前端 未结 4 1231
长发绾君心
长发绾君心 2020-12-15 02:01

I am trying to design a Java swing application. I want to experiment and use an MVC type of architecture whereby my UI is separated from the actual logic to access data and

4条回答
  •  醉酒成梦
    2020-12-15 02:44

    Two ways you can make it

    1. Override determineCurrentLookupKey() method of Spring's AbstractRoutingDataSource class.

    2. You can create a class which will return Connection based on system.

提交回复
热议问题