摘要: 在eclipse中运行没有任何问题,项目挪到idea之后就报错 Unable to start EmbeddedWebApplicationContext due to miss EmbeddedServletcont 原因:pom.xml中存在<scope>provided</scope> 注掉之 阅读全文
posted @ 2018-05-17 09:39 何良 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 1 继承extends Tread 覆盖Thread类中的run方法. 在run方法中编写需要执行的操作 在main方法(线程)中,创建线程对象,并调用start()方法启动线程. 2 实现Runnable接口 1):定义一个类A实现于java.lang.Runnable接口,注意A类不是线程类. 阅读全文
posted @ 2018-03-20 17:43 何良 阅读(719) 评论(0) 推荐(0) 编辑
摘要: 第一种方法 服务端处理 response.addHeader("Access-Control-Allow-Origin", "*"); 第二种 客户端使用Jsonp 第三种:尝试后端代码调用 阅读全文
posted @ 2018-03-20 17:12 何良 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 在springmvc.xml配置文件中加入 (注意是springmvc配置文件不是spring配置文件的xml)不然可能取不到值 <context:property-placeholder location="classpath*:conf/*.properties"/> 使用格式 @Value(" 阅读全文
posted @ 2018-03-20 17:02 何良 阅读(219) 评论(0) 推荐(0) 编辑
摘要: Java HotSpot(TM) 64-Bit Server VM warning: Insufficient space for shared memory file: /tmp/hsperfdata_work/10700Try using the -Djava.io.tmpdir= option 阅读全文
posted @ 2018-03-20 09:36 何良 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 1 获取ascii码 select ascii('特殊字符') from dual 2 替换 update table set testfield= replace(testfield,chr(ascii码),'') where 查询条件 阅读全文
posted @ 2018-02-01 10:44 何良 阅读(522) 评论(0) 推荐(0) 编辑
摘要: 一般对于ORA-12170这个问题 1 看数据ip 是否能ping通 2 数据库服务是否启动 3 数据库服务所在服务器防火墙 然而当你能进去数据,而报这个这错时: 1 看代码中数据库连接是写错 2 如果确认没问题,看你的sql中是否存在与dblink相关的表查询,dblink连接是否有问题或ip改动 阅读全文
posted @ 2018-01-31 19:24 何良 阅读(1041) 评论(0) 推荐(0) 编辑
摘要: $('#table').bootstrapTable({data:[]}); $('#table').bootstrapTable("showLoading"); ajax数据加载success$('#table').bootstrapTable("hideLoading"); 阅读全文
posted @ 2018-01-29 17:21 何良 阅读(1250) 评论(0) 推荐(0) 编辑
摘要: INSERT INTO 表X(列A,列B,列C…)SELECT 列1,列2,列3… FROM 表B WHERE条件 表B 不能使用order by 阅读全文
posted @ 2018-01-26 17:21 何良 阅读(121) 评论(0) 推荐(0) 编辑
摘要: application.properties中加入 multipart.maxFileSizemultipart.maxRequestSize Spring Boot 1.3.x或者之前 multipart.maxFileSize=100Mbmultipart.maxRequestSize=1000 阅读全文
posted @ 2018-01-11 19:53 何良 阅读(279) 评论(0) 推荐(0) 编辑
如果觉得老弟写的还可以,帮忙点个赞,谢谢