近期项目中使用到了ant design,下面来讲一下里面table组件的使用 1.基础:引入ant-design-vue组件 2 <a-table v-else :columns="columns" :dataSource="data" :pagination="pagination" @chang ...
分类:
其他好文 时间:
2019-11-14 18:31:38
阅读次数:
74
多数据源 使用Spring Boot时,默认情况下,配置DataSource非常容易。Spring Boot会自动为我们配置好一个DataSource。 如果在application.yml中指定了spring.datasource的相关配置,Spring Boot就会使用该配置创建一个DataSo ...
分类:
编程语言 时间:
2019-11-13 16:07:24
阅读次数:
74
不知道一些同学有没有这种疑问,为什么Mybtis中要配置dataSource,Spring的事务中也要配置dataSource?那么Mybatis和Spring事务中用的Connection是同一个吗?我们常用配置如下 <!--会话工厂 --> <bean id="sqlSessionFactory ...
分类:
编程语言 时间:
2019-11-13 13:09:29
阅读次数:
115
介绍 再使用spring操作mysql数据库报错 @Test public void test() { try { //创建连接池,先使用spring框架内置的连接池 DriverManagerDataSource dataSource =new DriverManagerDataSource(); ...
分类:
其他好文 时间:
2019-11-12 01:06:23
阅读次数:
85
传统关系型数据库中 ,最基本的sql查询语句由projecttion (field a,field b,field c) , datasource (table A) 和 fieter (field a >10) 三部分组成。 分别对应了sql查询过程中的result , datasource和op ...
分类:
数据库 时间:
2019-11-11 00:47:34
阅读次数:
118
1、最主要的代码 Spring 配置文件(beans.xml) 1 <!-- 连接池 --> 2 <bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"> 3 <!-- 注册驱动 --> 4 <property ...
分类:
数据库 时间:
2019-11-09 21:36:41
阅读次数:
116
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured 错误原因 主启动类注解错误 修改 @EnableAutoConfigur ...
分类:
编程语言 时间:
2019-11-07 19:09:48
阅读次数:
78
object DBGrid1: TDBGrid Left = 0 Top = 0 Width = 265 Height = 338 Align = alLeft DataSource = DataSource1 TabOrder = 0 TitleFont.Charset = DEFAULT_CHA ...
分类:
数据库 时间:
2019-11-06 13:23:23
阅读次数:
77
完整开发步骤 导包 spring的jar包 mybatis的jar包 mybatis-Spring的jar包 aop的依赖jar包 oracle等数据库连接的jar包 DataSource的jar包 日志包 导入配置文件 web.xml mvc.xml applicationContext.xml ...
分类:
其他好文 时间:
2019-11-06 13:08:19
阅读次数:
117
1 #DB Configuration 2 spring.datasource.driver-class-name=com.mysql.jdbc.Driver 3 spring.datasource.url=jdbc:mysql://127.0.0.1:3306/user?useUnicode=tr ...
分类:
移动开发 时间:
2019-11-05 21:21:11
阅读次数:
281