oom caused by Java Tomcat Max HTTP header size configuration

Max HTTP header size settings server.max-http-header-size=999999999 //953m JVM parameter configuration -Xms800m -Xmx800m Write a rest api @RestController("action") public class HttpHandler { @PostMapping("/get") public String get() { return "get"; } } post access   Server OOM java.lang.OutOfMemoryError: Java heap spa ...

Posted by dellwoodbu on Tue, 21 Apr 2020 08:21:49 -0700

The Java ftp compressed file is packaged into zip and downloaded to the local user through the browser download function

1. Import jar dependency package: ant-1.9.7.jar commons-net-3.3.jar Baidu online: https://pan.baidu.com/s/1u7m5NYans-UK_h8VSEPfbA Extraction code: qy12 2. Create a tool class DownloadFileUtil.java and write the following code: package com.zghky.utils; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStrea ...

Posted by bdee1 on Tue, 21 Apr 2020 07:08:52 -0700

Mavenx learn to find the right way, get started quickly!

1,Maven Why should I learn this technology? In Java Web development, we need to use a large number of jar packages. We need to import them manually; How to make a thing automatically help me import and configure this jar package. So Maven was born! 1.1 Maven project architecture management tool At present, it is convenient for us to impor ...

Posted by PupChow on Tue, 21 Apr 2020 04:49:17 -0700

Four common running modes in php

This article introduces four common ways of running php: CGI, FastCGI, Apache 2 handler and CLI. There is a certain reference value, friends in need can refer to it, hope to help you. There are four common running modes of PHP: CGI, FastCGI, Apache 2 handler and CLI. 1,CGI CGI is the common gateway interface, which is a program. Generally speak ...

Posted by ElectricRain on Mon, 20 Apr 2020 23:57:19 -0700

Shell notes: if and case condition judgment

1, if statement Single branch if statement Syntax (spaces at the beginning and end of brackets cannot be omitted): if [conditional judgment]; then program fi #Or if [conditional judgment] then program fi   Example: #!/bin/bash #If the usage rate of the root partition reaches 80, a warning will be issued and a prompt messag ...

Posted by steviemac on Mon, 20 Apr 2020 08:23:46 -0700

[java framework] Struts2 -- result view and parameter receiving of struts2

1. Results view of struts 2 Each atcion of Struts2 can have different result return methods. There are 11 ways to return the result type attribute in result. The main and most commonly used jump modes are redirect, redirectAction and pather. The type of the specific jump method can be found in struts-default.xml, as follows: <package name=" ...

Posted by budz on Sat, 18 Apr 2020 02:10:09 -0700

HBase operation: Spark read HBase snapshot demo share

**Before * * I shared with you a small demo of Spark reading HBase directly through the interface: HBase-Spark-Read-Demo However, if the amount of data is very large, Spark's direct scanning of HBase table will inevitably cause a lot of pressure on HBase cluster. Based on this, today I'd like to share with you the way spark directly reads HBas ...

Posted by vapokerpro on Fri, 17 Apr 2020 08:28:05 -0700

maven creates multi modular projects

1. Project scaffold reference https://www.cnblogs.com/fishyy/p/10313566.html 2. Add spring MVC dependency in parent pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http: ...

Posted by Rongisnom on Fri, 17 Apr 2020 07:49:14 -0700

centos 7 builds svn+apache server and discusses the difference between SVNParentPath and SVNPath

1. Preface Today, the leader asked to set up a set of svn servers to store some documents, which was supposed to be a very simple thing, but the process was not so smooth, mainly because he did not understand the problems caused by SVNParentPath and SVNPath, and only after finding the documents and debugging, did he find out their use and diff ...

Posted by zaki on Fri, 17 Apr 2020 03:24:14 -0700

Android HTTP mode request network

There are many ways to use Http to access the network, but the most common way is POST and GET. The project is just useful, so I wrote a tool class for later use. Generate a construction parameter with handler in HttpUtil class. The reason to generate a construction parameter with handler is that after Android 4.0, whe ...

Posted by devassocx on Thu, 16 Apr 2020 09:04:45 -0700