加载中
用httpclient实现soap数据获取

HttpClientBuilder httpClientBuilder = HttpClients.custom(); HttpClient httpClient = httpClientBuilder.build(); HttpHost httpHost = new HttpHost("服务器IP地址", 80); HttpPost ht...

02/01 11:10
15
在pom.xml中配置nexus上传地址

<distributionManagement> <repository> <id>thirdparty</id> <url>http://{nexusIP地址}:8081/nexus/content/repositories/thirdparty</url> </repository> </distributionManagement>.....

01/28 19:53
13
storm 提交任务报SocketException错误及解决办法

提交任务爆错: org.apache.storm.thrift.transport.TTransportException: java.net.SocketException: Broken pipe (Write failed) ..... Caused by: org.apache.storm.thrift.transport.TTr...

用netty 实现http server

workerGroup = new NioEventLoopGroup(); bossGroup = new NioEventLoopGroup(); ServerBootstrap b = new ServerBootstrap(); b.group(bossGroup,workerGroup) .channel(NioServerSocketCha...

01/15 20:19
19
java 用进程调用外部命令并获取返回结果

ProcessBuilder builder = new ProcessBuilder(command); Process subprocess = builder.start(); BufferedReader resultReader = new BufferedReader(new InputStreamReader(subprocess.get...

01/09 09:50
6
java 获取本机mac地址并转为字符串

public String getMacAddress() throws Exception{ InetAddress inetAddress = InetAddress.getLocalHost(); byte[] mac = NetworkInterface.getByInetAddress(inetAddress).getHardwareAddr...

01/09 09:49
4
centos 安装python计算环境pandas

1️⃣ 安装 pip ①离线安装 wget --no-check-certificate https://github.com/pypa/pip/archive/1.5.5.tar.gz tar zvxf 1.5.5.tar.gz cd pip-1.5.5/ python setup.py install ②用 yum安装 ...

java向activeMQ 发送数据代码模版

ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory("user", "password", "brokerUrl"); Connection connection = factory.createConnection(); connection.start(); Sessi...

2018/12/19 20:37
13
maven 复制依赖包到指定目录

<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy-dependencies</id> <phase>package</phase> ...

2018/11/16 14:58
8
ToolProvider.getSystemJavaCompiler 返回null解决办法

选择菜单“Run”->"Run configurations",在Classpath中Bootstrap Entries 添加 tools.jar,如下图

2018/10/24 15:20
7
the archive which is referenced by ...问题解决方案

"the archive which is referenced by the classpath,does not exist"解决办法: 1、在Eclipse 的Project Explorer 视图中右键项目 选“properties” 2、选择 “Run/Debug Settings” 3、选...

2018/09/19 16:56
14
oracle 时间戳(timestamp)字段比较

select round( (cast(timefield0 as date) - cast(timefield1 as date)) * 24 * 60 ) as diff_minutes from table......

2018/09/18 10:48
176
在命令(脚本)中提交到gitlab

call git add . && git commit -m "提交内容说明" && git push origin master --------- 提交到新的分支(服务器不存在该分支) call git add . && git commit -m "提交内容说明" && git pu...

2018/09/11 15:52
8
java语言实现将mysql的linestring、point 数据类型解析成double类型

mysql的linestring、point从jdbc读入为byte[] 类型,下面的java代码实现逐次读取经纬度数据,返回double数组: public static double[] bytestoPoints(byte[] arr){ if(arr==null){ return ...

2018/08/29 20:33
44
利用HttpClient 获取网页数据java代码模版

HttpClientBuilder httpClientBuilder=HttpClients.custom(); HttpClient httpClient=httpClientBuilder.build(); HttpHost httpHost=new HttpHost("127.0.0.1",8080); ......

2018/08/29 17:02
10
替换jvm虚拟机默认classloader

方法1: Run JVM with java.system.class.loader property: java -Djava.system.class.loader=myClassLoader myApplication ---------------------------------------------- 方法2: Field ...

2018/08/10 13:59
3
java判断当前是在class文件中运行还是在jar中运行

File file = new File(this.getClass().getProtectionDomain().getCodeSource().getLocation().getPath()); return file.isFile();......

2018/08/07 11:04
46
maven 项目deploy报400错误解决

如下图将 Deployment policy 设置为 Allow Redeploy ------------------- 另,自动部署到nexus: 在项目pom.xml中添加 <distributionManagement> <repository> <id>thirdparty</id> <url>htt...

2018/08/02 15:58
127

没有更多内容

加载失败,请刷新页面

返回顶部
顶部