The same project can sometimes involve multiple databases, or multiple data sources. Multiple data sources can be divided into two cases: 1) Two or more databases are not relevant, independent, in fact, this can be used as two projects to develop. For example, in game development, a database is a platform database, and the other is the platform of the game corresponding database; 2) Two or more databases are master-slave, such as having MySQL build a master-master, followed by multiple slave or using MHA to build a master-slave copy; there are probably two ways to build a Spring multi-data source, which can be selected based on the situation of multiple data sources. 1. Configure multiple data sources directly with the spring configuration file for example, if there is no correlation for two databases, you can configure multiple data sources directly in the spring configuration file and then configure the transactions separately, as follows: <context: Component-scan base-package= "Net.aazj.ser
1. Spring MyBatis Multi-Data Source instance detailed
Introduction: This article mainly introduces sping MyBatis multi-data source processing, in the development process often encounter multiple databases, here give you an example of how to deal with, hoping to help the need of small partners
2. Apache Shiro User Manual (v) Shiro configuration instructions
Summary: Most of the components of Apache Shiro are based on Pojo, so we can configure them with any configuration mechanism that is pojo compatible, such as Java code, sping XML, YAML, JSON, INI files, and so on. The following is an example of how spring XML is configured, and some of these configuration parameters are briefly explained.
3. Spring Framework Knowledge Summary-types of exceptions injected into beans
Introduction: The recent integration of sping and Hibernate framework encountered a series of anomalies, this time to explain the spring framework can be the exception and solution.
4. Oracle connection appears ora-12154
Summary: Oracle connection appears ora-12154 configured RAC, two nodes with tnsping can ping through, but with Sqlplus connection are the following error, do not know where the problem [Oracle@rac2 admin]$ Lsnrctl Statuslsnrctl for linux:version 9.2.0.4.0-production on 04-mar-2008 08:32:26c
5. ORA-12537 TNS-12518 Process m000 died
Summary: A recent customer message description could not connect to the database from the client with an error number of ora-12537:tns:connection closed and the connection was closed. Directly through Tnsping without any
6. tnsping Command Parsing in Oracle
Summary: Oracle Net Tools (command) tnsping, a tool for the OSI session layer, is used to: Verify name resolution (name resolution, Oracle's own network service name)
7. TNS-03505 Problem Solving Summary
Summary: Recently deployed projects, the Linux system uses non-Oracle user tests (such as test) tnsping ORCL The following message appears: tns-03505:failed to resolve name
8. Different users use tnsping+ Client service name, the result is different
Introduction: SUSE10SP2 Installed ORACLE11G client, new Aipcti user, tnsping VSM (VSM for the client under the service name) failed, error: tns-03505:failed to Reso
9. Oracle Dataguard FAQs
Summary: If there is no err in the operating system Oracle user login to see if the listener is started, Lsnrctl stauts, lsnrctl start with tnsping Two database is normal, as
Oracle cannot connect to a processing solution instance
Introduction: Linux Oracle 9i maintenance personnel reflect the database can not connect, the phenomenon is: tnsping, but with Sqlplus connection cannot connect, no error, is always hanging in that
"Related question and answer recommendation":
JAVA-SPRINGMVC Configuring the JSON times error Error creating bean
How to BULK Insert data in JAVA Sping-data-mogodb
sping-spring injection, referencing javaconfig in the XML configuration, results in the bean not found in config
Java-idea configuration struts2 failed to load Struts-default
Java-sping transaction issues when managing Hibernate (No hibernate Session bound to thread)