package com.sgcc.config;
import org.apache.ibatis.mapping.DatabaseIdProvider;
import org.apache.ibatis.mapping.VendorDatabaseIdProvider;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.Properties;
@Configuration
public class DataBaseConfig {
@Bean
public DatabaseIdProvider getDataBaseIdProvider() {
DatabaseIdProvider dataBaseIdProvider = new VendorDatabaseIdProvider();
Properties properties = new Properties();
properties.setProperty("Oracle","oracle");
properties.setProperty("MySQL","mysql");
properties.setProperty("DB2","db2");
properties.setProperty("Derby","derby");
properties.setProperty("H2","h2");
properties.setProperty("HSQL","hsql");
properties.setProperty("Informix","informix");
properties.setProperty("MS-SQL","ms-sql");
properties.setProperty("PostgreSQL","postgresql");
properties.setProperty("Sybase","sybase");
properties.setProperty("Hana","hana");
dataBaseIdProvider.setProperties(properties);
return dataBaseIdProvider;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
yj-pms-moresource.rar (61个子文件)
yj-pms-moresource
.classpath 1KB
.settings
org.eclipse.jdt.core.prefs 494B
org.eclipse.core.resources.prefs 191B
pom.xml 3KB
src
test
resources
java
main
resources
templates
mybatis
mapper
pri
PriMapper.xml 445B
sec
SecMapper.xml 447B
setting
static
application.yml 694B
java
com
sgcc
Application.java 387B
controller
Test.java 1KB
service
pri
IPriService.java 115B
PriServiceImpl.java 628B
sec
SecServiceImpl.java 399B
ISecService.java 92B
repositories
pri
IPriMapper.java 179B
sec
ISecJdbcMapper.java 157B
ISecMapper.java 254B
config
DataBaseConfig.java 1KB
yj-pms-moresource.iml 12KB
target
classes
mybatis
mapper
pri
PriMapper.xml 445B
sec
SecMapper.xml 447B
application.yml 694B
META-INF
MANIFEST.MF 167B
maven
org.example
yj-pms-moresource
pom.properties 268B
pom.xml 3KB
com
sgcc
Application.class 794B
controller
Test.class 2KB
service
pri
IPriService.class 178B
PriServiceImpl.class 974B
sec
SecServiceImpl.class 706B
ISecService.class 152B
repositories
pri
IPriMapper.class 263B
sec
ISecJdbcMapper.class 243B
ISecMapper.class 346B
config
DataBaseConfig.class 1KB
test-classes
generated-sources
annotations
bin
pom.xml 3KB
src
test
resources
java
main
resources
templates
mybatis
mapper
pri
PriMapper.xml 445B
sec
SecMapper.xml 447B
SecJdbcMapper.xml 332B
setting
application.yml 802B
java
com
sgcc
Application.class 2KB
controller
Test.class 5KB
service
pri
IPriJdbcService.class 505B
IPriService.class 549B
PriServiceImpl.class 5KB
PriJdbcServiceImpl.class 2KB
sec
SecServiceImpl.class 2KB
SecJdbcServiceImpl.class 3KB
ISecService.class 506B
ISecJdbcService.class 528B
repositories
pri
IPriMapper.class 693B
sec
ISecJdbcMapper.class 673B
ISecMapper.class 841B
config
WebMvcConfig.class 13KB
DataBaseConfig.class 2KB
yj-pms-moresource.iml 12KB
target
classes
mybatis
mapper
pri
PriMapper.xml 445B
sec
SecMapper.xml 447B
SecJdbcMapper.xml 332B
application.yml 802B
com
sgcc
controller
service
pri
sec
repositories
pri
sec
config
generated-sources
annotations
.project 1KB
.project 1KB
共 61 条
- 1
资源评论
皮卡皮卡皮·
- 粉丝: 139
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功