首页 > TAG信息列表 > DBConfig

C#的sqlite orm - praeclarum/sqlite-net笔记

此orm需要用到sqlite3的运行库,从这里下载:https://www.sqlite.org/download.html 安装source: https://github.com/praeclarum/sqlite-net/blob/master/src/SQLite.cs 应用: 1、建立基础类 class DBConfig { public SQLiteConnection connection { get; set; }

用 @Value("${xxxx}")注解从配置文件读取值的用法

1.  用法: 从配置properties文件中读取init.password 的值。 @Value("${init.password}") private String initPwd; 2. 在spring的配置文件中加载配置文件dbconfig.properties : <!-- 加载配置文件 --> <bean id="configProperties" class="org.springframewo

PHP|ThinkPHP|Yii 数据库迁移(Phinx)的使用

        首先,PHP Composer, ThinkPHP,Yii 这三者的数据库迁移都是基于Phinx来操作。而对于基础数据库的建表可以导出一份SQL文件作为基础数据也不需要在写create table什么的比较费时间。         讲解场景:当你又一个sell数据库,其中有表sell,你要新增tille_2字段,其

简单实用的php爬虫系统

通过简单的配置就爬取到网页内容,代码在github,欢迎大家一起使用。  * 代码提供的两个示例。由于网页改版,可能已经不能用了,下载后按自己的实际需求来修改正规提取规则。 https://github.com/wxxiong6/crawl php爬虫系统 程序只支持CLI 安装程序 1.dbconfig.php 添加正确的数

Spring 项目中使用context:property-placeholder的一个大坑

<context:property-placeholder location="classpath:dbconfig.properties"/> <bean id="dataSource2" class="com.mchange.v2.c3p0.ComboPooledDataSource"> <property name="user" value="${username}

PHP执行数据库定时备份

我的这个是在TP5上,其实不在TP5也可以 逻辑: 1 首先在自己电脑的cmd命令上测试备份数据库,成功才能往下进行所以得到 C:/luanxiede/mysql-5.7/bin/mysql.exe shujiku > "C:/shujiku_0908.sql" 注:这里没用到用户名和密码是因为在本机上就可以省略.参考: https://dev.mysql.com/d

sqlserver使用mybatisgenerator自动生成实体类、Mapper接口以及对应的XML文件

准备工作 你需要先准备一个sqljdbc4-4.0.jar pom文件新增配置 新增依赖 <dependency> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-core</artifactId> <version>1.3.5</version> </dependency> 增加插件配置 <