最近在学用 spring boot 做项目,碰到一个问题,tomcat下正常运行的项目到jetty里老出问题,
搜了好多次,终于找到如下内容:
http://stackoverflow.com/questions/32643530/classpath-issue-between-jetty-maven-plugin-and-tomcat-jdbc-8-0-9-leading-to-ser
把tomcat-judi变成provided
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-juli</artifactId>
<version>8.5.5</version>
<scope>provided</scope>
</dependency>
添加文件 WEB-INF/jetty-web.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
<Call name="setParentLoaderPriority">
<Arg type="boolean">true</Arg>
</Call>
</Configure>
分享到:
相关推荐
用于解决异常项目中No Spring WebApplicationInitializer types detected on classpath
USB Device Over Current Status Detected! System will Shut Down After 15 Second!这个应该是华硕主板的通病,一般都是跳线未设置好或USB电源短路造成的,提供一张维修方法,仅供参考。
此文档描述了Detected memory leaks内存泄漏的简单检测方法,通过调用系统函数,在debug模式下运行,可以很快定位出内存泄漏之处;注:此方法并不能适用所有Detected memory leaks情况
If the board is moved the acceleration is detected on x/Y axis and LEDs toggles according to the motion direction and speed. 2. If a click is detected on Z axis LED3 and LED6 toggles during 3s. ...
DELL_服务器硬盘掉线后的REBUILD修复操作全过程
网站vue.js检测插件,判断网页是否使用vue.js或者Nuxt.js,Nuxt.js + Vue.js is detected on this page.
解决报错HEAP CORRUPTION DETECTED heap corruption detected after normal block.zip
文献:High-Precision Ultrasonic Ranging System Platform Based on Peak-Detected Self-Interference Technique 关键词:自干涉;超声波
运行UG提示Fatal error detected unable to continue的解决方法
INFO: No Spring WebApplicationInitializer types detected on classpath 九月 18, 2013 11:39:04 上午 org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring root WebApplicationContext ...
2.读入网格时,error:File haswrong dimensions(2) 3.the use of axis boundary conditions is not appropriate for 2D/3D flow problem. 4.error:divergence detected in AMG solver 5.error:temperature ...
供OD(Ollydbg)学习用的Debugger Detected原版打包zip,也是小甲鱼OD使用教程第二十三讲中用到的程序。
centos7_XFS_报Corruption of in-memory data detected错误修复
码云 eclipse git remote: warning: Large files detected. 非命令方式解决方案。
3. New Features and Enhancements in Spring Framework 4.0 ............................................ 17 3.1. Improved Getting Started Experience .........................................................
大家都知道DOS下的MHDD坏道扫描修复工具吧,而且是英文的,但对于菜鸟来说DOS下是多么麻烦况且还是英文版的,这下好了,出了一款Victoria中文版,他是 windows环境下的桌面级别的坏道扫描修复工具,是真能修复扫描坏...
NULL 博文链接:https://dingherry.iteye.com/blog/1545972
转载至ST link官方链接 官方是免费下载的,因此不应该所需积分下载,这里动态调分设置为不允许 升级ST-link的官网链接: ...滑到最下面直接download并接受选择Accept即可,也可以直接用我转载的资源 ...
由于上传大小限制,这是第一部份。要把part1,2,3一起下载并解压。