02 2017 档案

摘要:遇到一个场景,需要将数据库查询的结果导入到另外一个数据库中,给我的第一感受是,写程序,从数据库A中获取到数据,在插入到数据库B中。 但是Idea 可以直接复制查询结果,然后粘贴生成insert语句。 演示如下: 阅读全文
posted @ 2017-02-26 11:54 nele 阅读(6867) 评论(0) 推荐(0)
摘要:有时候通过获取上个页面的Url来做一个跳转,获取域名防止非正常访问 获取上一个页面的一个URL,这个URL一般做一个页面的跳转 window.location.href <script>window.location.href="http://www.baidu.com"</script> 获取上一 阅读全文
posted @ 2017-02-21 10:46 nele 阅读(2593) 评论(0) 推荐(0)
摘要:鉴于国内的网络环境,从默认 Maven 库下载 jar 包是非常的痛苦。 速度慢就不说了,还经常是下不下来,然后一运行就是各种 ClassNotFoundException,然后你得找到残留文件删掉重新下,或者下载到本地然后通过命令添加到本地库中。当然土豪公司自建仓库的就另当别论啦。 今天就给大家安 阅读全文
posted @ 2017-02-21 09:25 nele 阅读(13558) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2017-02-12 10:58 nele 阅读(3) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2017-02-12 10:53 nele 阅读(4) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2017-02-11 15:33 nele 阅读(2) 评论(0) 推荐(0)
摘要:java 使用volatile实现线程数据的共享 直接上代码看效果: 效果如下: 如果不加volatile while循环不会停止,因为即使在主线程中setRunning(false) 在子线程中isRunning仍然是true。 在java中,子线程的执行的时候会在内存中划出一个区域,特意把子线程 阅读全文
posted @ 2017-02-09 22:48 nele 阅读(184) 评论(0) 推荐(0)
摘要:java 线程通信使用wait notify 配合synchronized 当线程执行wait()时,会把当前的锁释放,然后让出CPU,进入等待状态。当执行notify/notifyAll方法时,会唤醒一个处于等待该 对象锁 的线程,然后继续往下执行,直到执行完退出对象锁锁住的区域(synchron 阅读全文
posted @ 2017-02-09 22:12 nele 阅读(160) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2017-02-09 19:14 nele 阅读(1) 评论(0) 推荐(0)
摘要:在记录日志的的时候,获取用户的信息,比如用户的ip,浏览器等等信息是十分重要的。 但是在使用nginx反向代理的时候,可能经过转发无法获取到用户的真实的ip, 在此情况下需要配置nginx,让其在转发的时候在header 带上用户的真实的ip。 举个例子: 详细查看: http://blog.csd 阅读全文
posted @ 2017-02-03 15:32 nele 阅读(750) 评论(0) 推荐(0)
摘要:There are several reasons why it makes sense to build super-lightweight HTTP services (or, despite all the baggage the word brings, “microservices”). 阅读全文
posted @ 2017-02-03 10:55 nele 阅读(547) 评论(0) 推荐(0)
摘要:ASP.NET Core MVC now provides a true "one asp.net" framework that can be used for building both APIs and websites. But what if you only want to build 阅读全文
posted @ 2017-02-03 10:51 nele 阅读(205) 评论(0) 推荐(0)
摘要:Recently I built plug-ins support to my TemperatureStation IoT solution web site. The code for .NET Core is different from what we have seen on full . 阅读全文
posted @ 2017-02-03 10:33 nele 阅读(304) 评论(0) 推荐(0)