java
daniel7443
这个作者很懒,什么都没留下…
展开
-
Java 注解指导手册 – 终极向导
编者的话:注解是java的一个主要特性且每个java开发者都应该知道如何使用它。我们已经在Java Code Geeks提供了丰富的教程, 如Creating Your Own Java Annotations, Java Annotations Tutorial with Custom Annotation 和 Java Annotations: Explored & Expla转载 2016-04-15 15:47:09 · 1036 阅读 · 0 评论 -
Upload files by sending multipart request programmatically
In the article Upload file to servlet without using HTML form,we discussed how to fire an HTTP POST request to transfer a file to a server – but that request’s content type is not ofmultipart/转载 2017-02-08 07:45:54 · 627 阅读 · 0 评论 -
Upload file to servlet without using HTML form
It’s trivial to use a web form which is made by HTML code for uploading files from web browser to a server. This is commonly referred asform based file upload, and typically suitable for web-based a转载 2017-02-08 07:44:35 · 341 阅读 · 0 评论 -
How to automate login a website – Java example
In this example, we will show you how to login a website via standard Java HttpsURLConnection. This technique should be working in most of the login form.Tools & Java Library used in this example转载 2017-02-08 07:41:46 · 1165 阅读 · 0 评论 -
How to send HTTP request GET/POST in Java
In this article, we will show you two examples to make HTTP GET/POST request via following APIsStandard HttpURLConnection.Apache HttpClient library.1. Java HttpURLConnection exampleThis exampl转载 2017-02-08 07:39:22 · 817 阅读 · 0 评论 -
Java EE 7: Building Web Applications with WebSocket, JavaScript and HTML5
OverviewPurposeThis tutorial shows you how to create an application that uses the WebSocket API for real-time communication between a client and a server. You learn how to:Create a Java Plat转载 2016-08-25 09:50:21 · 674 阅读 · 0 评论 -
how to write your annotation types and make use of built-in annotations to control their behavior
转载 2016-09-16 13:14:38 · 413 阅读 · 0 评论 -
Java 8 Stream Tutorial
This example-driven tutorial gives an in-depth overview about Java 8 streams. When I first read about the Stream API, I was confused about the name since it sounds similar toInputStream and OutputStre转载 2016-08-23 13:06:23 · 378 阅读 · 0 评论 -
解决使用Spring Boot、Multipartfile上传文件路径错误问题
彻底跟路径错误say拜拜!题图:from Google1.问题描述关键字: SpringMVC 4.2.4 、 Spring Boot 1.3.1 、Servlet 3.0 、文件上传报错信息: java.io.IOException: java.io.FileNotFoundException: /tmp/tomcat.273391201583741210.8080/转载 2016-06-09 12:48:32 · 137458 阅读 · 16 评论 -
Jackson - Installation
The Java JSON API called Jackson consists of one core JAR file (project) and two other JAR files that use the core JAR file. The three JAR files (projects) in the Jackson JSON API are:Jackson Core转载 2016-06-02 13:40:16 · 318 阅读 · 0 评论 -
Implementing High Performance Parsers in Java
Note: This article is an updated version of a previous article on the same topic. The original version of the article was intended to capture some of the main points of creating a high-performance par转载 2016-06-02 13:35:09 · 615 阅读 · 0 评论 -
Jackson tips: using @JsonAnyGetter/@JsonAnySetter to create "dyna beans"
One relatively common "special" POJO is so-called dynamic bean ("dyna-bean"), which is sort of combination of regular bean and basic Java Map; with zero or more properties with known name, and extensi转载 2016-05-19 11:44:44 · 647 阅读 · 0 评论 -
JAVA正则表达式语法大全
1 [正则表达式]文本框输入内容控制 2 整数或者小数:^[0-9]+\.{0,1}[0-9]{0,2}$ 3 只能输入数字:"^[0-9]*$"。 4 只能输入n位的数字:"^\d{n}$"。 5 只能输入至少n位的数字:"^\d{n,}$"。 6 只能输入m~n位的数字:。"^\d{m,n}$" 7 只能输入零和非零开头的数字:"^(0|[1-9][0-9]*)$"。转载 2016-05-05 09:42:51 · 7389 阅读 · 0 评论 -
实例分析JVM安全体系:双亲委派、命名空间、保护域、策略
在了解双亲委派模型之前,先了解一下类加载器的概念:类加载器的作用就是将真实的class文件根据位置将该Java类的字节码装入内存,并生成对应的Class对象。用户可以通过继承ClassLoader和重写findClass方法来定义自己的类加载器进行加载,系统类加载器按照层次,分为:(1).启动类加载器(Bootstrap ClassLoader):将加载 /JAVAHOME/lib以及转载 2016-04-15 15:54:40 · 1039 阅读 · 0 评论 -
Creating Your Own Java Annotations
If you’ve been programming in Java and using any one of the popular frameworks like Spring and Hibernate, you should be very familiar with using annotations. When working with an existing framework, i转载 2016-04-15 15:49:22 · 267 阅读 · 0 评论 -
最简单的Lambda入门教程
Lambda简介Lambda作为函数式编程中的基础部分,在其他编程语言(例如:Scala)中早就广为使用,但在JAVA领域中发展较慢,直到java8,才开始支持Lambda。抛开数学定义不看,直接来认识Lambda。Lambda表达式本质上是匿名方法,其底层还是通过invokedynamic指令来生成匿名类来实现。它提供了更为简单的语法和写作方式,允许你通过表达式来代替函数式接口。在一些人看来,L...转载 2018-06-21 15:35:31 · 6863 阅读 · 4 评论