
数据库访问
我滴神呀
这个作者很懒,什么都没留下…
展开
-
springboot +mybatise +druid静态访问多个数据库
1、application.properties配置文件:#数据库设置spring.datasource.mytest.type=com.alibaba.druid.pool.DruidDataSourcespring.datasource.mytest.driverClassName=com.mysql.jdbc.Driverspring.datasource.mytest.url=jdbc原创 2017-09-20 12:33:57 · 446 阅读 · 0 评论 -
单独加载DataSource,用于测试对数据库的访问。
(1、)配置文件beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:context原创 2018-01-29 15:20:13 · 1089 阅读 · 0 评论 -
spring+mybatis
主要是通过spring整合mybatis框架来访问数据库。1、pow.xml依赖。<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM...原创 2018-02-08 10:36:37 · 621 阅读 · 0 评论