1. 程式人生 > >pom.xml中jetty外掛的配置詳情

pom.xml中jetty外掛的配置詳情

<plugin>
    <groupId>org.eclipse.jetty</groupId>
    <artifactId>jetty-maven-plugin</artifactId>
    <version>9.3.14.v20161028</version>
    <configuration>
        <webAppConfig>
            <maxFormContentSize>600000</maxFormContentSize>
            <contextPath>
/file</contextPath> </webAppConfig> <scanIntervalSeconds>3</scanIntervalSeconds> <webAppSourceDirectory>${basedir}/webapp/</webAppSourceDirectory> <stopPort>9998</stopPort> <stopKey>stop</stopKey> <jettyConfig/>
<systemProperties> <systemProperty> <name>UrlEncoded</name> <value>GBK</value> </systemProperty> </systemProperties> </configuration> </plugin>

maxFormContentSize 這個是控制表單請求內容的大小設定,

類似問題:

(

tomcat預設設定能接收HTTP POST請求的大小最大為2M,如果你的POST請求傳遞的資料大於2M,就會出現Post data too big的錯誤。

解決辦法:$TOMCAT_HOME$/conf/server.xml,找到裡面的<Connector>標籤,在該標籤中新增"maxPostSize"屬性,將該屬性值設定成你想要的最大值,單位是位元組,如果你把這個值設定為0(maxPostSize="0"),tomcat將不再檢查POST的大小

)

contextPath 設定專案上下文路徑

相關推薦

pom.xmljetty外掛配置詳情

<plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <

Springboot整合dubbo構建maven多模組專案(一)- 專案建立和pom.xmljar包配置

       以前一直用Spring作為容器構建專案,但是看到Spring官網一直在推Springboot,最重要的是Springboot確實避免自己尋找多個jar包(大多數情況下,可能自己都不記得該引入哪些jar包)和jar包之間衝突的問題,同時省掉了在整合其他框架時候

常用pom.xml的依賴配置

<dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-we

如何在maven的pom.xml配置jetty外掛

在maven的pom.xml中新增如下內容即可: <build><plugins><!-- jetty外掛, 設定埠與context path --><plugin><groupId>org.mortbay.jet

pom.xmlmaven-compiler-plugin外掛配置的使用

maven是個專案管理工具,如果我們不告訴它我們的程式碼要使用什麼樣的jdk版本編譯的話,它就會用maven-compiler-plugin預設的jdk版本來進行處理,這樣就容易出現版本不匹配的問題,以至於可能導致編譯不通過的問題。例如程式碼中要是使用上了jdk1.7的新特

maven setting.xml 多倉庫配置(外掛依賴來自不同私服,須保證pom.xml外掛版本的唯一性)

<?xml version="1.0" encoding="UTF-8"?><settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"      xmlns:xsi="http://www.w3.org/2001/XMLSchema-in

在 eclipse 創建 web 版的 maven 工程以及 進一步了解 pom.xml scope 的相關配置設置問題

maven scope web 版的 maven 工程 pom.xml 1、在 eclipse中 創建 web 版的 maven 工程: a、和 創建 java 版的 maven 工程一樣,先選中一個簡單的工程(跳過經典模式),後填寫坐標(不了解的看先前的博文),在打包方式中選擇 war

pom.xml配置maven專案的JDK版本

預設版本 maven專案中,編譯器和JRE的版本預設為1.5(所以Alt + F5重新整理專案後,多個引數值會變成1.5) 引數如下(選中專案,Alt + Enter,檢視專案屬性): Java Build Path下的Libraries下的JRE System Lirbrary的版

Maven的pom.xml配置詳解

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apac

pom.xml新增阿里雲Maven中央倉庫配置

<repositories><!-- 程式碼庫 --> <repository> <id>maven-ali</id>

tomcat-maven-plugin在pom.xml配置

1、使用tomcat-maven-plugin需要在pom.xml檔案中project>build節點下新增以下程式碼: <pluginManagement> <plugins> <plugin>

[轉]關於maven pom.xmldependency type 為pom的應用

目的 art 導致 需要 是什麽 所有 sdn 也有 .net 原文地址:http://blog.csdn.net/yao123long/article/details/49925659 dependency為什麽會有type為pom,默認的值是什麽?dependency

pom.xml的dependencies點擊add怎麽沒有搜索到相關jar包

ext 文檔 操作 osi window ati code jar文件 相關 1、eclipse菜單 window-> show view –> other –> Maven2、在打開的窗口裏,右鍵 local repositories –> loc

pom.xml排除quartz包

quartz <dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-all</artifactId> <version>1.4.0</

pom.xml添加Spring依賴

xsd -- -s ase uil nag move lean jar <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0"

pom.xml使用distributionManagement將項目打包上傳到nexus私服

build 指定 mage 項目打包 admin hold set str eight 本文介紹 如何在pom.xml中使用distributionManagement將項目打包上傳到nexus私服1、pom.xml文件添加distributionManagement節點

eclipse maven 使用 jetty 外掛配置

在pom引入配置jetty <build> <finalName>chapter2</finalName> <plugins> <plugin> <groupId>org.eclipse.jetty</

maven 在pom.xml 指定倉庫位置

  ......  在pom.xml 中新增 倉庫位置(這樣遇到私服沒有的依賴,就會去這下載) </properties> <repositories><!-- 程式碼庫 --> <rep

第14講 struts2struts.xml的標籤配置

1複製專案,HeadFirstStruts2chapter02_06 改名:HeadFirstStruts2chapter02_07,同時修改web project settings 2修改HelloAction,name屬性,get() set()方法,package com.cruis

JEECG快速開發平臺入坑報錯解決第一波——pom.xmljeecg的依賴jar包沒匯入成功

不做多餘解釋,錯誤見上圖;jar包沒匯入成功,自然要想辦法匯入jar包,可選方法如下: 專案關閉,重新開啟,maven會自動下載; 選中專案,右鍵選擇RunAS,再選擇Maven install,控制檯會下載專案所依賴的包; 選中專案,右鍵選擇Maven,再選擇