Sprmvc file upload

spring mvc file upload needs to rely on commons-io and commons-fileupload to achieve together premise Assuming that the dependencies, configurations, etc. on spring mvc are normal and usable, that part is not explained in this article. rely on Managing with maven requires dependencies that include <dependency> <groupId>co ...

Posted by aneuryzma on Fri, 28 Jun 2019 18:17:11 -0700

Under Windows, complete the gRPC Java example step by step

This paper gives a Java example of using Google RPC (grpc) to complete rpc step by step under Windows.~ This article will explain from the following parts. Generate code automatically according to proto - Write proto file, and automatically generate code required by gRPC under window s according to tools Code Composition - Gives the ...

Posted by emceej on Thu, 27 Jun 2019 13:00:02 -0700

Using JPA to Access Data in Spring Boot

This article briefly describes the use of Spring Data JPA to store and retrieve data in relational databases. What applications will you create? You will create an access to Customer in the memory database POJOs Application. Dead work: About 15 minutes Your favorite text editor or IDE JDK >= 1.8 Maven >= 3.0 Create directory structure U ...

Posted by nicholaspaul on Sat, 22 Jun 2019 15:08:30 -0700

Using Gradle to Create Java Projects under Windows

Create a project First, you need to create a Java project with the following directory structure: / src/main/java/hello. You can create several Java classes under the Hello directory. Here, HelloWorld.java and Greeter.java are created for convenience. The code is as follows: src/main/java/hello/HelloWorld.java package hello; public class ...

Posted by jax_15 on Fri, 21 Jun 2019 16:06:58 -0700

Spring Boot automatically encapsulates and validates form entities with REST API requests

Read Spring.io valid form validation demo and tutorials on the official website. Let me start with the official spring book tutorial, and then briefly talk about some of the ways in which unified validation management is written to facilitate lazy people or code optimization. Form annotations require that the project rely on the hibernate ...

Posted by fusioneko on Mon, 17 Jun 2019 14:26:25 -0700

OpenSAML usage boot I: Introduction - everything you need to know about OpenSAML

Relevant Reading SAML 2.0 Introduction Guide This article has introduced the basic information of the SAML protocol. Today we will begin to explain OpenSaml, an open source implementation of the SAML protocol. SAML What's OpenSAML OpenSAML is a dependency library that facilitates the use of SAML messages. Its main functions include: Create S ...

Posted by The.Pr0fess0r on Fri, 14 Jun 2019 17:32:13 -0700

XSS Defense - Using AntiSamy

AntiSamy is an open source project of OWASP. It checks and cleans the HTML / CSS / JavaScript input by users to ensure that the input conforms to the application specifications. AntiSamy is widely used in the defense of storage and reflection XSS in Web services. 1. maven dependence AntiSamy can be imported directly into the project, but i ...

Posted by Nate on Fri, 14 Jun 2019 12:13:05 -0700

Introduction to Docker Technology and Practice: Chapter 3 - Using Docker Mirrors - Chapter 4 Operating Containers - Reading Notes

Mirror already exists. Let's learn how to use it. ================================================ Mirror is the most important of the three cores and the most popular keyword since the birth of Docker!   Docker needs a local mirror before running the container with the following priority: 1) Locally existing mirrors 2) Default mirror war ...

Posted by ratass2002 on Sat, 08 Jun 2019 09:45:14 -0700

JMS Implements Centralized Management of Parameters

Preface Last document Zookeeper implements centralized management of parameters This paper introduces how to use Zookeeper to monitor and notify nodes to simply realize centralized management of parameters. In fact, JMS publishing and subscribing mechanism can also achieve similar functions. Cluster nodes can update specified parameters by subs ...

Posted by impulse() on Tue, 04 Jun 2019 11:35:41 -0700

Automatically scan implementation classes of java interfaces and generate registry

Preface Recently, the framework of android component library was set up in our company. The general idea is to provide a base library. Each component (the implementation class of IComponent interface) is registered in the component management class (ComponentManager class). When components are in the same app, they can communicate through Co ...

Posted by AbiusX on Wed, 22 May 2019 09:16:47 -0700