2017年11月10日

maven 打 fat包(jar包有了全部依赖)插件

摘要: <plugin> <artifactId> maven-assembly-plugin </artifactId> <configuration> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </desc 阅读全文

posted @ 2017-11-10 23:20 --LP-- 阅读(550) 评论(0) 推荐(0) 编辑

2017年9月17日

ajax请求跨域

摘要: 解决方式 1: 解决方式 2: 服务端: 浏览器端 阅读全文

posted @ 2017-09-17 03:02 --LP-- 阅读(291) 评论(0) 推荐(0) 编辑

2017年3月6日

CyclicBarrier簡介

摘要: package CyclicBarrier;import java.util.concurrent.CyclicBarrier;import java.util.concurrent.atomic.AtomicInteger;public class TestCyclicBarrier { priv 阅读全文

posted @ 2017-03-06 11:53 --LP-- 阅读(101) 评论(0) 推荐(0) 编辑

java 異常抛出 throw 與 return

摘要: package 異常; public class TestException { public TestException() { } boolean testEx() throws Exception { boolean ret = true; try { ret = testEx1(); } c 阅读全文

posted @ 2017-03-06 00:15 --LP-- 阅读(732) 评论(0) 推荐(0) 编辑

2017年2月8日

CentOS 7 网络配置

摘要: 桥接 再 阅读全文

posted @ 2017-02-08 11:58 --LP-- 阅读(111) 评论(0) 推荐(0) 编辑

2016年12月20日

简例 一次执行多条mysql insert语句

摘要: package com.demo.kafka;import java.sql.Connection;import java.sql.DriverManager;import java.sql.PreparedStatement;public class ConnectToMysql { public 阅读全文

posted @ 2016-12-20 16:08 --LP-- 阅读(715) 评论(0) 推荐(0) 编辑

2016年11月25日

javax/javaee-api/ Maven依赖

摘要: <dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>7.0</version></dependency> 阅读全文

posted @ 2016-11-25 17:02 --LP-- 阅读(805) 评论(0) 推荐(0) 编辑

关闭页面前提示或保存数据

摘要: <script type="text/javascript"> window.onbeforeunload = function(event) {//event写不写都无所谓 这里也可用其他方法操作 执行前提是页面有过修改 document.getElementById('dd').innerHTM 阅读全文

posted @ 2016-11-25 15:37 --LP-- 阅读(335) 评论(0) 推荐(0) 编辑

2016年11月21日

@RequestMapping(value = "{adminPath}")

摘要: 阅读全文

posted @ 2016-11-21 16:02 --LP-- 阅读(420) 评论(0) 推荐(0) 编辑

2016年10月10日

SpringMVC的controller方法上若需要参数 如User

摘要: Bean: public class User { private String name; private String password; public String getName() { return name; } public void setName(String name) { th 阅读全文

posted @ 2016-10-10 10:33 --LP-- 阅读(150) 评论(0) 推荐(0) 编辑

导航