不多BB,直接上代码: public class DataSourceKey { /** * 用户数据源 */ public final static String USER = "userDataSource"; /** * 报表数据源 */ public final static String REPORT = "reportDataSource"; /** * 所有数据源的集合 */ final static List<String> SOURCE
登录数据库后,选择数据库时发现以下提示, mysql> use testReading table information for completion of table and column namesYou can turn off this feature to get a quicker startup with -A Database changedmysql> 意思是 预读这个库中表以及表列信息,一般原因是当库中表很多,表中数据很大时,就会出现执行use <库名>后半天