Spring boot disable insecure request method of built-in Tomcat

Cause: the security group needs to turn off the insecure request methods, such as put, delete and other methods, to prevent the server resources from being tampered with maliciously. You know that you can use @ PostMapping, @ GetMapping and other annotations to define a single interface method type, or you can specify ...

Posted on Sat, 09 Nov 2019 15:44:37 -0500 by Crashin

Handwritten dubbo like rpc framework Chapter 3 rpc framework

Case introduction Combined with the above two chapters, this chapter will realize the basic functions of rpc; provide one to rpc middleware jar to the production side and server side. Technical points; 1. For the registration center, the producer needs to publish the local interface to the registration center when star ...

Posted on Sat, 09 Nov 2019 15:33:08 -0500 by colB

Activity transition animation settings

In the company's project, there is a problem. Here is a summary When an Activity is implicitly started, there will be a default start animation, which is a zoom effect. Every time other applications start music, there will be an obvious animation effect. If it is inconsistent with the design, it is necessary to remove ...

Posted on Sat, 09 Nov 2019 13:31:35 -0500 by cbrian

Basic configuration of spring MVC

Record the steps to build the spring MVC framework I. create a new Java Web project, springmvc1, and import the jar package in lib This project uploads GitHub, which is convenient to download jar package https://github.com/yeyangtao/springmvc 2. web.xml file under Web inf Among them, serve name's spingmvc will be used in the next step. ...

Posted on Sat, 09 Nov 2019 10:45:44 -0500 by Saeven

9. BeanFactory Source Code Analysis of Spring

BeanFactory Source Code Analysis for Spring (1) Note: This essays is entirely quoted from https://blog.csdn.net/u014634338/article/details/82865644 , well written, thank you very much. Copying is an accumulation, I'm afraid I can't find it later. BeanFactory BeanFactory provides the functionality of the most basic IOC container. BeanFactory is ...

Posted on Sat, 09 Nov 2019 00:42:00 -0500 by Benny Johnson

Dynamic PivotTable

Write a perspective stored procedure that meets your requirements. During development, it can be used directly.   SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: Insus.NET -- Create date: 2019-05-19 -- Update date: 2019-05-19 -- Description: Dynamic perspective ...

Posted on Fri, 08 Nov 2019 11:32:17 -0500 by mxdan

C × XML base XElement Name the secondary child node name of the root node

 .NET Framework : 4.7.2        IDE : Visual Studio Community 2019         OS : Windows 10 x64     typesetting : Markdown         blog : blog.csdn.net/yushaopu        github : github.com/GratefulHeartCoder   xml file <?xml version="1.0" encoding="utf-8"?> <cultures> <taoists count="100" comme ...

Posted on Fri, 08 Nov 2019 10:04:15 -0500 by Hallic7

java common service cluster building [8] solrcloud

Solrcloud is the cluster of solr. This paper will explain how to build solrcloud cluster. 1. Preconditions Three CentOS servers The ip addresses of the three CentOS servers are 192.168.100.134, 135 and 136 respectively, and they ping each other zookeeper cluster is installed on three machines https://www.jianshu.com/p/48f142f8 ...

Posted on Fri, 08 Nov 2019 09:43:53 -0500 by PDP11

Single file upload and multi file upload of struts 2

File upload refers to uploading the local file to the specified directory of the server and using struts to upload the file. First, set the value of the enctype attribute of the form form form to multipart / form data. Single file upload The code of file upload page is as follows <body> <s:actionerror /&gt ...

Posted on Thu, 07 Nov 2019 13:43:07 -0500 by Keith Scott

mapper implementation of mybatis

Mybatis is often used in projects, and hibernate was slowly abandoned many years ago.I haven't blogged for a long time since iteye was acquired. This year I want to make up for it by writing more.Today, let's talk about the mapper implementation of mybatis. @Component public interface ActivityMapper {/** Add prize record @param prizeEnti ...

Posted on Thu, 07 Nov 2019 10:51:56 -0500 by BrianG