java
qq_16660569
这个作者很懒,什么都没留下…
展开
-
java Stream的Collectors.toMap
import java.util.ArrayList;import java.util.List;import java.util.Map;import java.util.stream.Collectors;public class test4 { public static void main(String[] args) { // TODO Auto-g...转载 2019-06-13 15:31:51 · 750 阅读 · 0 评论 -
Spring boot 整合CXF webservice 全部被拦截的问题
Spring Boot集成webService服务端使用idea创建spring boot工程:“File”→“New”→“Project”→“Spring Initializr”……在pom添加依赖<dependency> <groupId>org.springframework.boot</groupId> <ar...转载 2019-06-14 17:36:40 · 1727 阅读 · 0 评论 -
枚举常见的七种用法
枚举常见的七种用法 DK1.5引入了新的类型——枚举。在 Java 中它虽然算个“小”功能,却给我的开发带来了“大”方便。用法一:常量在JDK1.5 之前,我们定义常量都是: publicstaticfianl.... 。现在好了,有了枚举,可以把相关的常量分组到一个枚举类型里,而且枚举提供了比常量更多的方法。Java代码publicenumColor{...转载 2019-06-25 15:21:29 · 107 阅读 · 0 评论 -
react 路由跳转详情页 传递路由参数
1. 在App.js配置详情页面的路由<Route path="/Detail/:id" component={Detail} />2. 父页面,主要看页面里的routerTo()方法import React, {Component} from 'react';import {Link} from 'react-router-dom'class Home exten...转载 2019-07-01 14:26:49 · 3590 阅读 · 0 评论 -
Spring Boot中的自定义start pom
start pom是springboot中提供的简化企业级开发绝大多数场景的一个工具,利用好strat pom就可以消除相关技术的配置得到自动配置好的Bean。举个例子,在一般使用中,我们使用基本的spring-boot-starter配置基本的springboot项目,也使用spring-boot-starter-web去配置web项目,<dependencies> ...转载 2019-06-26 22:03:35 · 189 阅读 · 0 评论 -
EOS 配置构建包显示为中文名称
构件包名是英文的,使用显示名称便于阅读。选择资源管理器右上角菜单的【使用显示名称】,构件包名可以切换到显示名称:原创 2019-07-03 16:00:40 · 288 阅读 · 0 评论 -
SpringBoot监听程序的启动、停止事件的方法
程序开发时,一般需要在程序启动后执行一段初始化的逻辑,在程序停止之前,执行一段“优雅终止”的逻辑。如下示例演示了在SpringBoot应用中,如何使程序在启动后或者停止前执行指定的逻辑。1. pom.xml文件如下:<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/...原创 2019-08-05 17:18:05 · 3744 阅读 · 0 评论 -
org.apache.commons.httpclient工具类
HttpClient 请求的工具类import org.apache.commons.httpclient.DefaultHttpMethodRetryHandler;import org.apache.commons.httpclient.HttpClient;import org.apache.commons.httpclient.HttpMethod;import org.apac...原创 2019-08-09 14:18:57 · 1876 阅读 · 0 评论