原文:https://blog.csdn.net/hhw199112/article/details/80234462 错误: 登录失败 该登陆名来自不受信任的域,不能与windows身份认证一起使用 解决: 数据库连接字符串改为:integrated security=false 原因: inte ...
国际化文件的编写 messages.properties init project 7月前 messages_en_US.properties init project 7月前 messages_zh_CN.properties 页面非连接配置国际化只需要: spring.messages.base ...
分类:
编程语言 时间:
2019-11-30 18:53:01
阅读次数:
91
约束 public abstract class BaseModel { public int Id { get; set; } } 连接字符串 public static readonly string Customers = ConfigurationManager.ConnectionStri ...
分类:
数据库 时间:
2019-11-26 19:43:32
阅读次数:
68
本文梯子 本文3.0版本文章 回顾 1、Sqlsugar 的使用 2、修改数据连接字符串 今天要完成的浅紫色部分 一、设计仓储基类接口——IBaseRepository.cs 二、将其他的仓储接口,继承基接口 三、对仓储基接口进行实现 四、设计应用服务层基类与基接口 五、运行项目,并调试接口 六、初 ...
Python格式化输出 1、%d是输出整数 ,%f小数,浮点数,%s 是字符2、要想用print语句连接字符串, 可以使用,end='' 的办法,其中在''里可以添加其它字符串")3、isdigit()方法的意思是判断salary变量长的像不像数字 "1234500" python print格式化 ...
分类:
其他好文 时间:
2019-11-17 17:24:51
阅读次数:
93
为了保证数据高可用,那么我们采用Zookeeper作为配置中心来保存数据。SpringCloud对Zookeeper的集成官方也有说明: "spring_cloud_zookeeper " 这里通过实践的方式讲解下使用方式。 1、添加依赖包 配置说明: 是zookeeper作为配置中心的配置项目。 ...
分类:
其他好文 时间:
2019-11-12 11:21:46
阅读次数:
87
// mysql中使用concat连接字符串 select t1.id, t1.title, t2.keyword from t1 inner join t2 on t1.title like concat('%', t2.keyword, '%'); 其它思路:exists(是否存在)、regex ...
分类:
数据库 时间:
2019-11-08 21:15:17
阅读次数:
149
public abstract class SQLHelper { //只读的静态数据库连接字符串 //需添加引用System.Configuration; public static readonly string connString = ConfigurationManager.Connect ...
分类:
数据库 时间:
2019-11-01 09:46:47
阅读次数:
108
数值函数 abs(x) 返回x的绝对值 mod(n,m)返回n被m除的余数,相当于n%m floor(x)返回小于等于x的最大整数(向下取整),例floor(-1.2)返回-2 ceil(x)返回大于等于x的最小整数(向上取整) round(x)返回四舍五入的整数,1.2返回1, 1.5返回2 tr ...
分类:
数据库 时间:
2019-10-27 10:27:14
阅读次数:
104
1.普通查询 2.排序查询 order by asc | desc 3.区间查询 between | and 4.范围查询 in | not in 5.模糊查询 like % | _ (下划线一次只能匹配任意一个字符) 6.为空查询 is null | is not null 7.多条件查询 and ...
分类:
其他好文 时间:
2019-10-26 13:29:33
阅读次数:
101