摘要: 错误提示: 严重: Servlet.service() for servlet [datasync.controller.manager.SettingServlet] in context with path [/dy-web] threw exception [Servlet execution 阅读全文
posted @ 2018-02-09 15:28 天地盟主 阅读(604) 评论(0) 推荐(0) 编辑
摘要: 问题: 项目部署到Linux服务器之后,控制台 catalina.out 文件输出的中文为乱码: 解决办法: 方法一:修改tomcat下的模板编码 bin/catalina.sh 文件添加如下配置:JAVA_OPTS="-Dfile.encoding=UTF-8 -Dsun.jnu.encoding 阅读全文
posted @ 2017-10-23 15:30 天地盟主 阅读(10227) 评论(2) 推荐(1) 编辑
摘要: 今天遇到了一个问题 就是要批量更新数据库中 某个字段的值,需要首先需要找到都哪些表里包含了这个字段 ,整理了下面这个语句 方便查询 SELECT DISTINCT t.table_name, c.COLUMN_NAMEFROM information_schema.TABLES tINNER JOI 阅读全文
posted @ 2017-10-23 15:21 天地盟主 阅读(3556) 评论(0) 推荐(0) 编辑
摘要: 使用的虚拟机是VMware WorkStation 9.0(9.0.0 build-812388) 1. 安装过程中 选择 桥接 此系统可以拥有独立ip、Nat模式跟主机ip一样 2. 安装过程中选择 单个文件存储 不选择 拆分多个 一般建议是ntfs的硬盘选择单个 fat32的选择拆分多个 便于移 阅读全文
posted @ 2016-06-23 13:53 天地盟主 阅读(508) 评论(0) 推荐(0) 编辑
摘要: 今天部署asp.net网站的时候遇到了两个问题 : 一、网站部署完毕后出现了404的问题 查资料发现还是少配置 在web.config中的configuration配置节点下加入如下配置节点即可 <system.webServer> <defaultDocument> <files> <add va 阅读全文
posted @ 2016-04-27 09:35 天地盟主 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 在mysql 里面生成时间戳的方法 :SELECT unix_timestamp(now()) 按中文名称首字母排序 SELECT * from Book order by convert(Name using gbk) ASC 阅读全文
posted @ 2016-04-18 09:05 天地盟主 阅读(193) 评论(0) 推荐(0) 编辑
摘要: select top 1 * from msdb..restorehistorywhere destination_database_name='数据库名称'order by restore_date desc 阅读全文
posted @ 2016-03-09 10:35 天地盟主 阅读(528) 评论(0) 推荐(0) 编辑
摘要: 删除D盘的所有文件:del /a /f /q d:\*.* 删除指定目录的指定扩展名的文件:del /a /f /q 目录:\*.jpg 删除当前目录下的指定扩展名的文件(指定扩展名为jpg):del /a /f /q %cd%\*.jpg PS: 阅读全文
posted @ 2016-02-25 19:49 天地盟主 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 批处理文件bat,搜索指定目录的文件,拷贝到指定地点 阅读全文
posted @ 2016-02-23 15:14 天地盟主 阅读(561) 评论(0) 推荐(0) 编辑
摘要: border-collapse 属性设置表格的边框是否被折叠成一个单一的边框或隔开: 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <style> 5 table { 6 border-collapse: collapse; 7 } 8 </style> 9 </hea 阅读全文
posted @ 2016-02-12 06:33 天地盟主 阅读(317) 评论(1) 推荐(0) 编辑