后端
何家大少
这个作者很懒,什么都没留下…
展开
-
ActiveXComponent app = new ActiveXComponent(Word.Application)语句不执行
在做将其他格式文件转换为pdf格式是执行到如下:ActiveXComponent app = new ActiveXComponent("Word.Application");语句时报错错是由于运行时需要加载对应的类不成功,查看网上的资料发现是缺少了jacob-1.18-M2-x64.dll(64位) 将其放到了jdk/bin文件夹下,运行报错:由于文件放错了位置,应该放到jdk/j...原创 2018-12-06 09:06:45 · 18148 阅读 · 6 评论 -
定时任务QuartZ Cron表达式
Cron表达式是一个字符串,字符串以5或6个空格隔开,分为6或7个域,每一个域代表一个含义,Cron有如下两种语法格式: (1)Seconds Minutes Hours DayofMonth Month DayofWeek Year (2)Seconds Minutes Hours DayofMonth Month DayofWeek 一、结构 corn从左到...转载 2020-04-23 14:59:23 · 153 阅读 · 0 评论 -
sql模糊查询带中括号[ ]字符串及中括号Unclosed character class near index 0 [ ^ 转义符问题
一、需要模糊查询带中括号的字符串,一般写法失败: SELECT * FROM EvaluationInformation WHERE AnnualNumber LIKE '%[2018]%';二、中括号需要通过escape进行转义才能查到数据: SELECT * FROM EvaluationInformation WHERE AnnualNumber LI...原创 2019-12-05 11:35:55 · 1697 阅读 · 0 评论 -
Excel导入异常Cannot get a text value from a numeric cell解决
OI操作Excel时偶尔会出现Cannot get a text value from a numeric cell的异常错误。异常原因:Excel数据Cell有不同的类型,当我们试图从一个数字类型的Cell读取出一个字符串并写入数据库时,就会出现Cannot get a text value from a numeric cell的异常错误。此异常常见于类似如下代码中:row.ge...转载 2019-11-18 18:37:29 · 547 阅读 · 0 评论