为什么新建web项目没有 java EE 7.0 可以选择

我最近在做websocket 相关,上网查了一下必须 至少要 java EE 7.0 以上才支持,所以我以前用的是 jdk1.6.0_45 和tomcat 7, 新建web项目的时候只有 java EE 6.0 和 5.0可选,所以我就使用了jdk1.7.0_79 ,但是新建web project的时候,J2EE Specification Level 中还是没有 Java EE 7.0可选,请问是什么原因呢?最后添加的Liabrary中也没有Java EE 7 Library ,求指点。图片说明
图片说明

5个回答

myeclipse版本旧了

你的版本太旧了吧。Java EE 7是2013年底发布的。你的myeclipse是什么版本的

一般来说,myeclipse版本最新的,会配置J2EE7.0

版本低了,手动给加上吧

Myeclips中添加JDK,把1,7和1.8的都加上!

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
求教JavaEE5.0项目如何更改成6.0项目

项目中需要接入第三方功能接口,那些接口需要高版本的。求教各位大神应该如何解决配置服务器。我用的是Tomcat服务器。

eclipse中无法创建动态web项目,报错运行时“Apache Tomcat v7.0”是无效的

![图片说明](https://img-ask.csdn.net/upload/201604/24/1461484990_873875.png) ![图片说明](https://img-ask.csdn.net/upload/201604/24/1461485159_360566.png) ## ## 应该点哪里如何操作解决这个,在线等,谢谢!

JavaTomcat部署远程web启动错误-本地部署远程web启动错误

JavaTomcat启动错误 关键错误日志如下: 28-Jun-2019 07:54:44.034 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 28-Jun-2019 07:54:44.147 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [D:\WebServer\apache-tomcat-8.0.35\webapps\DaysToDie] 28-Jun-2019 07:54:44.173 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/DaysToDie]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) at Caused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoot@aaca5bc] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) at Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.JarResourceSet@77cfd824] at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140) at Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: error in opening zip file at Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(Unknown Source) at java.util.zip.ZipFile.<init>(Unknown Source) at java.util.jar.JarFile.<init>(Unknown Source) at java.util.jar.JarFile.<init>(Unknown Source) at 放到远程之后无法启动,本地正常 1.看了报错之后,这边第一时间是去删tomcat-catalina缓存,然后进行开启 2.仔细检查过web.xml没有问题,甚至删除了后面添加的一部分进行测试,也就是之前这个在远程能正常访问的 3.继续看下面的日志,他说无法打开zip文件后面还报了一些jar资源文件错误 jar文件可以确保是没错误的,刚开始这些放到远程正常启动 我是直接把本地tomcat-webapps放到远程上面的tomcat-webapps的,远程的访问加载路径这些都在第一次使用时改过,后面一段时间也正常使用 后面改了一些代码,然后重新部署时出现该错误

在运行JavaEE项目时,总是报错

在运行JavaEE项目时,总是报错,说是找不到WEB-INF下的applicationContext.xml文件

在阿里云上部署java项目后,浏览器访问不了?

在阿里云上部署java项目后,用浏览器访问网页显示如下错误:![图片说明](https://img-ask.csdn.net/upload/201903/14/1552556167_258315.png) 声明: 在网上也查了许多资料: 1,有说是阿里云安全规则配置哪里没设置![图片说明](https://img-ask.csdn.net/upload/201903/14/1552556313_933513.png)![图片说明](https://img-ask.csdn.net/upload/201903/14/1552556324_255015.png)![图片说明](https://img-ask.csdn.net/upload/201903/14/1552556330_9396.png) 可是还是没用 2,然后根据网上说的看下tomcat日志: ``` Using CATALINA_BASE: /usr/java/tomcat7 Using CATALINA_HOME: /usr/java/tomcat7 Using CATALINA_TMPDIR: /usr/java/tomcat7/temp Using JRE_HOME: /usr Using CLASSPATH: /usr/java/tomcat7/bin/bootstrap.jar:/usr/java/tomcat7/bin/tomcat-juli.jar Mar 14, 2019 2:56:22 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Server version: Apache Tomcat/7.0.93 Mar 14, 2019 2:56:22 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Server built: Feb 16 2019 17:13:17 UTC Mar 14, 2019 2:56:22 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Server number: 7.0.93.0 Mar 14, 2019 2:56:22 PM org.apache.catalina.startup.VersionLoggerListener log INFO: OS Name: Linux Mar 14, 2019 2:56:22 PM org.apache.catalina.startup.VersionLoggerListener log INFO: OS Version: 2.6.32-754.11.1.el6.x86_64 Mar 14, 2019 2:56:22 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Architecture: amd64 Mar 14, 2019 2:56:22 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Java Home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.211.x86_64/jre Mar 14, 2019 2:56:22 PM org.apache.catalina.startup.VersionLoggerListener log INFO: JVM Version: 1.7.0_211-mockbuild_2019_03_11_17_56-b00 Mar 14, 2019 2:56:22 PM org.apache.catalina.startup.VersionLoggerListener log INFO: JVM Vendor: Oracle Corporation Mar 14, 2019 2:56:22 PM org.apache.catalina.startup.VersionLoggerListener log INFO: CATALINA_BASE: /usr/java/tomcat7 Mar 14, 2019 2:56:22 PM org.apache.catalina.startup.VersionLoggerListener log INFO: CATALINA_HOME: /usr/java/tomcat7 Mar 14, 2019 2:56:23 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Command line argument: -Djava.util.logging.config.file=/usr/java/tomcat7/conf/logging.properties Mar 14, 2019 2:56:23 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager Mar 14, 2019 2:56:23 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Command line argument: -Djdk.tls.ephemeralDHKeySize=2048 Mar 14, 2019 2:56:23 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Command line argument: -Dignore.endorsed.dirs= Mar 14, 2019 2:56:23 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Command line argument: -Dcatalina.base=/usr/java/tomcat7 Mar 14, 2019 2:56:23 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Command line argument: -Dcatalina.home=/usr/java/tomcat7 Mar 14, 2019 2:56:23 PM org.apache.catalina.startup.VersionLoggerListener log INFO: Command line argument: -Djava.io.tmpdir=/usr/java/tomcat7/temp Mar 14, 2019 2:56:23 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib Mar 14, 2019 2:56:23 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-8080"] Mar 14, 2019 2:56:23 PM org.apache.coyote.AbstractProtocol init SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-bio-8080"] java.net.BindException: Address already in use (Bind failed) <null>:8080 at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:414) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:728) at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:452) at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) at org.apache.catalina.connector.Connector.initInternal(Connector.java:978) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardService.initInternal(StandardService.java:560) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:840) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.startup.Catalina.load(Catalina.java:660) at org.apache.catalina.startup.Catalina.load(Catalina.java:685) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427) Caused by: java.net.BindException: Address already in use (Bind failed) at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376) at java.net.ServerSocket.bind(ServerSocket.java:375) at java.net.ServerSocket.<init>(ServerSocket.java:237) at java.net.ServerSocket.<init>(ServerSocket.java:181) at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49) at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:401) ... 17 more Mar 14, 2019 2:56:23 PM org.apache.catalina.core.StandardService initInternal SEVERE: Failed to initialize connector [Connector[HTTP/1.1-8080]] org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-8080]] at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107) at org.apache.catalina.core.StandardService.initInternal(StandardService.java:560) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:840) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.startup.Catalina.load(Catalina.java:660) at org.apache.catalina.startup.Catalina.load(Catalina.java:685) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427) Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed at org.apache.catalina.connector.Connector.initInternal(Connector.java:980) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) ... 12 more Caused by: java.net.BindException: Address already in use (Bind failed) <null>:8080 at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:414) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:728) at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:452) at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) at org.apache.catalina.connector.Connector.initInternal(Connector.java:978) ... 13 more Caused by: java.net.BindException: Address already in use (Bind failed) at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376) at java.net.ServerSocket.bind(ServerSocket.java:375) at java.net.ServerSocket.<init>(ServerSocket.java:237) at java.net.ServerSocket.<init>(ServerSocket.java:181) at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49) at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:401) ... 17 more Mar 14, 2019 2:56:23 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["ajp-bio-8009"] Mar 14, 2019 2:56:23 PM org.apache.coyote.AbstractProtocol init SEVERE: Failed to initialize end point associated with ProtocolHandler ["ajp-bio-8009"] java.net.BindException: Address already in use (Bind failed) <null>:8009 at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:414) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:728) at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:452) at org.apache.catalina.connector.Connector.initInternal(Connector.java:978) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardService.initInternal(StandardService.java:560) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:840) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.startup.Catalina.load(Catalina.java:660) at org.apache.catalina.startup.Catalina.load(Catalina.java:685) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427) Caused by: java.net.BindException: Address already in use (Bind failed) at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376) at java.net.ServerSocket.bind(ServerSocket.java:375) at java.net.ServerSocket.<init>(ServerSocket.java:237) at java.net.ServerSocket.<init>(ServerSocket.java:181) at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49) at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:401) ... 16 more Mar 14, 2019 2:56:23 PM org.apache.catalina.core.StandardService initInternal SEVERE: Failed to initialize connector [Connector[AJP/1.3-8009]] org.apache.catalina.LifecycleException: Failed to initialize component [Connector[AJP/1.3-8009]] at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107) at org.apache.catalina.core.StandardService.initInternal(StandardService.java:560) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:840) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.startup.Catalina.load(Catalina.java:660) at org.apache.catalina.startup.Catalina.load(Catalina.java:685) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427) Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed at org.apache.catalina.connector.Connector.initInternal(Connector.java:980) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) ... 12 more Caused by: java.net.BindException: Address already in use (Bind failed) <null>:8009 at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:414) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:728) at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:452) at org.apache.catalina.connector.Connector.initInternal(Connector.java:978) ... 13 more Caused by: java.net.BindException: Address already in use (Bind failed) at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376) at java.net.ServerSocket.bind(ServerSocket.java:375) at java.net.ServerSocket.<init>(ServerSocket.java:237) at java.net.ServerSocket.<init>(ServerSocket.java:181) at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49) at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:401) ... 16 more Mar 14, 2019 2:56:23 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1420 ms Mar 14, 2019 2:56:23 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina Mar 14, 2019 2:56:23 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.93 Mar 14, 2019 2:56:23 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive /usr/java/tomcat7/webapps/survey.war Mar 14, 2019 2:56:23 PM org.apache.catalina.loader.WebappClassLoaderBase validateJarFile INFO: validateJarFile(/usr/java/tomcat7/webapps/survey/WEB-INF/lib/servlet-api.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class Mar 14, 2019 2:56:24 PM org.apache.catalina.deploy.WebXml setVersion WARNING: Unknown version string [3.1]. Default version will be used. Mar 14, 2019 2:56:25 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined Mar 14, 2019 2:56:25 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined Mar 14, 2019 2:56:25 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined Mar 14, 2019 2:56:25 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined Mar 14, 2019 2:56:26 PM org.apache.catalina.startup.TldConfig execute INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. Mar 14, 2019 2:56:26 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Parsing configuration file [struts-default.xml] Mar 14, 2019 2:56:26 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Unable to locate configuration files of the name struts-plugin.xml, skipping Mar 14, 2019 2:56:26 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Parsing configuration file [struts-plugin.xml] Mar 14, 2019 2:56:26 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Parsing configuration file [struts.xml] Mar 14, 2019 2:56:26 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (com.opensymphony.xwork2.ObjectFactory) Mar 14, 2019 2:56:26 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (com.opensymphony.xwork2.FileManager) Mar 14, 2019 2:56:26 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.XWorkConverter) Mar 14, 2019 2:56:26 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (com.opensymphony.xwork2.TextProvider) Mar 14, 2019 2:56:26 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (com.opensymphony.xwork2.ActionProxyFactory) Mar 14, 2019 2:56:26 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ObjectTypeDeterminer) Mar 14, 2019 2:56:26 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (org.apache.struts2.dispatcher.mapper.ActionMapper) Mar 14, 2019 2:56:26 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (jakarta) for (org.apache.struts2.dispatcher.multipart.MultiPartRequest) Mar 14, 2019 2:56:26 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (org.apache.struts2.views.freemarker.FreemarkerManager) Mar 14, 2019 2:56:27 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (org.apache.struts2.components.UrlRenderer) Mar 14, 2019 2:56:27 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (com.opensymphony.xwork2.validator.ActionValidatorManager) Mar 14, 2019 2:56:27 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (com.opensymphony.xwork2.util.ValueStackFactory) Mar 14, 2019 2:56:27 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionProvider) Mar 14, 2019 2:56:27 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionContextFactory) Mar 14, 2019 2:56:27 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (com.opensymphony.xwork2.util.PatternMatcher) Mar 14, 2019 2:56:27 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (org.apache.struts2.dispatcher.StaticContentLoader) Mar 14, 2019 2:56:27 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (com.opensymphony.xwork2.UnknownHandlerManager) Mar 14, 2019 2:56:27 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Choosing bean (struts) for (org.apache.struts2.views.util.UrlHelper) Mar 14, 2019 2:56:27 PM org.apache.catalina.core.StandardContext startInternal SEVERE: One or more Filters failed to start. Full details will be found in the appropriate container log file Mar 14, 2019 2:56:27 PM org.apache.catalina.core.StandardContext startInternal SEVERE: Context [/survey] startup failed due to previous errors Mar 14, 2019 2:56:27 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deployment of web application archive /usr/java/tomcat7/webapps/survey.war has finished in 3,963 ms Mar 14, 2019 2:56:27 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 4088 ms Mar 14, 2019 2:56:27 PM org.apache.catalina.core.StandardServer await SEVERE: StandardServer.await: create[localhost:8005]: java.net.BindException: Address already in use (Bind failed) at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376) at java.net.ServerSocket.bind(ServerSocket.java:375) at java.net.ServerSocket.<init>(ServerSocket.java:237) at org.apache.catalina.core.StandardServer.await(StandardServer.java:444) at org.apache.catalina.startup.Catalina.await(Catalina.java:799) at org.apache.catalina.startup.Catalina.start(Catalina.java:745) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:428) Mar 14, 2019 2:56:27 PM org.apache.coyote.AbstractProtocol pause INFO: Pausing ProtocolHandler ["http-bio-8080"] Mar 14, 2019 2:56:27 PM org.apache.coyote.AbstractProtocol pause INFO: Pausing ProtocolHandler ["ajp-bio-8009"] Mar 14, 2019 2:56:27 PM org.apache.catalina.core.StandardService stopInternal INFO: Stopping service Catalina Mar 14, 2019 2:56:27 PM org.apache.coyote.AbstractProtocol stop INFO: Stopping ProtocolHandler ["http-bio-8080"] Mar 14, 2019 2:56:27 PM org.apache.coyote.AbstractProtocol destroy INFO: Destroying ProtocolHandler ["http-bio-8080"] Mar 14, 2019 2:56:27 PM org.apache.coyote.AbstractProtocol stop INFO: Stopping ProtocolHandler ["ajp-bio-8009"] Mar 14, 2019 2:56:27 PM org.apache.coyote.AbstractProtocol destroy INFO: Destroying ProtocolHandler ["ajp-bio-8009"] ``` 看了下是说tomcat端口占用? 杀掉tomcat后还是没作用 求各位大佬帮个帮忙 谢谢

myeclispe6.5中遇到的方法提示问题。

<p>我在myeclispe6.5建了两个项目 SSCdao(java项目) 和SSCweb(web项目) ,在SSCdao项目中的有些类方法,在SSCweb中使用是会有方法提示,</p> <p>我把项目拷贝到myeclispe7.0上就正常了 这是怎么回事?</p> <p> </p><br /><strong>问题补充:</strong><br />java build path 中java项目已经引入 至于部分类的方法不提示?<br /><strong>问题补充:</strong><br />不引java项目 web项目中类都是X<br /><strong>问题补充:</strong><br />问题是这样的 我引入了java项目 web中应该可一看见java项目中的方法,就是有一个类他看不到 类路径 方法修饰符都是对的。<br /><strong>问题补充:</strong><br />初步确定 是我的myeclispe6.5 jre 配的是jdk6 而myeclispe6.5中web项目引用的java ee 5 那个类又是使用泛型 可能存在版本支持问题 <br /><br /><strong>问题补充:</strong><br />横奇怪的问题 我将web项目中的引用(java ee 5 library)删了就好了,可是这删了有些类变XX了 <br />

servlet 3.0的两个小问题,有没有人发现

Java EE 6.0的确有些好的东西,实验了一下servlet 3.0的新特性。用GlassFish 3,Tomcat dev 7.0,jboss-web-3.0.0-beta-1都试过。 <br />1、注解@WebServlet("/test")在打包成jar后,annotation不起作用。 <br />2、web-fragment.xml在不打包为jar时,不起作用。不好调试开发。 <br />不知道有没有发现?有没有什么解决的办法。 <br /> <br />这实在是有点折腾人<img src="/images/smiles/icon_lol.gif"/>&nbsp;<img src="/images/smiles/icon_lol.gif"/>

阿里云ecs中javaweb项目无法访问servlet

在阿里云上购买学生版的ecs, 自己装了tomcat7+java8+mysql5.7 然后部署javaweb项目。 这个javaweb项目本地正常运行,发布到ecs上之后可访问jsp文件,但无法访问servlet,一访问就报http404,第一此访问会报http500 Error instantiating servlet class。 我尝试作了一个jsp直接调用java文件,代码如下 ``` <%@ page import="dao.*"%> <%@ page import="dao.impl.StudentDaoImpl"%> ......... .............. <% StudentDao ad =new StudentDaoImpl(); %> <%=ad.queryAllStudent().get(0).getName()%> ``` 提示http500:Unsupported major.minor version 52.0(编译版本高于运行)但我的java与tomcat版本与本机是一样的, 本机 tomcat7.0.86,java 1.8.0.13 ; ecs tomcat7.0.99 java 8u40b25 而且curl的内容与外面浏览器结果都一致 web.xml ``` <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"> <display-name>studentAD</display-name> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>default.htm</welcome-file> <welcome-file>default.jsp</welcome-file> </welcome-file-list> <servlet> <servlet-name>findStuByPageServlet</servlet-name> <servlet-class>servlet.FindStuByPageServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>findStuByPageServlet</servlet-name> <url-pattern>/findStuByPageServlet</url-pattern> </servlet-mapping> </web-app> ``` ecs的tomcat下webapp文件夹 ![图片说明](https://img-ask.csdn.net/upload/201912/24/1577186909_54909.png) lib文件 ![图片说明](https://img-ask.csdn.net/upload/201912/24/1577186946_738.png)

tomcat正常启动,可与访问tomcat主页,但是不能访问自己写的Jsp页面

![图片说明](https://img-ask.csdn.net/upload/201909/19/1568855365_875734.png) ![图片说明](https://img-ask.csdn.net/upload/201909/19/1568855374_12012.png) ![图片说明](https://img-ask.csdn.net/upload/201909/19/1568855416_998310.png) 我把tomcat默认端口,修改成了8088端口,防止其他进程占用8080端口! tomcat可以正常启动! 运行环境:win10 tomcat 7.093版本 eclipise ee 这到底是什么问题。百度了好久试了好多方法还是不行!求大佬帮忙看看到底那里问题!

spring构造注入失败,init注入也失败,tomcat也不报错

init注入: @Service public class test { @PostConstruct public void server() { System.out.println("我只是为了进来一次"); e(); } public void e() { System.out.println("进到e"); } 构造注入: @Autowired public NettyServerBootstrap() throws InterruptedException { System.out.println("没进来啊"); bind(); } public void bind() throws InterruptedException { system.out.println("meijinlai"); } tomcat: 十月 16, 2015 2:49:57 下午 org.apache.catalina.core.AprLifecycleListener init 信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files (x86)\Java\jdk1.7.0_05\bin;D:\Tomcat 7.0\bin 十月 16, 2015 2:49:58 下午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["http-bio-8080"] 十月 16, 2015 2:49:58 下午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["ajp-bio-8009"] 十月 16, 2015 2:49:58 下午 org.apache.catalina.startup.Catalina load 信息: Initialization processed in 1402 ms 十月 16, 2015 2:49:58 下午 org.apache.catalina.core.StandardService startInternal 信息: Starting service Catalina 十月 16, 2015 2:49:58 下午 org.apache.catalina.core.StandardEngine startInternal 信息: Starting Servlet Engine: Apache Tomcat/7.0.29 十月 16, 2015 2:49:58 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory D:\Tomcat 7.0\webapps\AppServer_1.3_netty_start 十月 16, 2015 2:49:59 下午 org.apache.catalina.loader.WebappClassLoader validateJarFile 信息: validateJarFile(D:\Tomcat 7.0\webapps\AppServer_1.3_netty_start\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class 十月 16, 2015 2:50:13 下午 org.apache.catalina.core.ApplicationContext log 信息: No Spring WebApplicationInitializer types detected on classpath 十月 16, 2015 2:50:13 下午 org.apache.catalina.core.ApplicationContext log 信息: Set web app root system property: 'webapp.root' = [D:\Tomcat 7.0\webapps\AppServer_1.3_netty_start\] 十月 16, 2015 2:50:13 下午 org.apache.catalina.core.ApplicationContext log 信息: Initializing log4j from [classpath:log4j.properties] 十月 16, 2015 2:50:13 下午 org.apache.catalina.core.ApplicationContext log 信息: Initializing Spring root WebApplicationContext 十月 16, 2015 2:50:28 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory D:\Tomcat 7.0\webapps\docs 十月 16, 2015 2:50:28 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory D:\Tomcat 7.0\webapps\manager 十月 16, 2015 2:50:28 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory D:\Tomcat 7.0\webapps\ROOT 十月 16, 2015 2:50:28 下午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["http-bio-8080"] 十月 16, 2015 2:50:28 下午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["ajp-bio-8009"] 十月 16, 2015 2:50:28 下午 org.apache.catalina.startup.Catalina start 信息: Server startup in 30570 ms tomcat没报错,上面那两个报错没有关系的,对程序没影响。 注意:项目service注入是成功的,resource也是成功的, 就是上面两个注入是失败的 附application.xml:<context:component-scan base-package="com"/> 文件都在com.AppServer.action bean xxxx目录下

阿里云 Java环境 每小时在根目录下生成 hs_err_pid*.log ,求教!

OS环境:阿里云 1核 1G内存; 安装软件:安装了 JDK 1.7 TOMCAT 7.X; 部署内容:部署了 java web 工程,工程正常运行; 问题:每小时在跟目录下生成一个 hs_err_pid<pid>.log 已经采取的措施: 1、配置服务器Swap 2、配置tomcat jvm 内存 (bin/catalina.sh) 未果,求牛人指点。 文件内容如下: # # There is insufficient memory for the Java Runtime Environment to continue. # pthread_getattr_np # Possible reasons: # The system is out of physical RAM or swap space # In 32 bit mode, the process size limit was hit # Possible solutions: # Reduce memory load on the system # Increase physical memory or swap space # Check if swap backing store is full # Use 64 bit Java on a 64 bit OS # Decrease Java heap size (-Xmx/-Xms) # Decrease number of Java threads # Decrease Java thread stack sizes (-Xss) # Set larger code cache with -XX:ReservedCodeCacheSize= # This output file may be truncated or incomplete. # # Out of Memory Error (os_linux_x86.cpp:718), pid=29229, tid=140505843455744 # # JRE version: Java(TM) SE Runtime Environment (7.0_67-b01) (build 1.7.0_67-b01) # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.65-b04 mixed mode linux-amd64 compressed oops) # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # --------------- T H R E A D --------------- Current thread (0x00007fca0c08a800): JavaThread "Service Thread" daemon [_thread_new, id=29237, stack(0x0000000000000000,0x0000000000000000)] Stack: [0x0000000000000000,0x0000000000000000], sp=0x00007fca10e34880, free space=137212737746k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0x99eb8a] V [libjvm.so+0x49721b] V [libjvm.so+0x8237ca] V [libjvm.so+0x823815] V [libjvm.so+0x952614] V [libjvm.so+0x958dd4] V [libjvm.so+0x81f988] --------------- P R O C E S S --------------- Java Threads: ( => current thread ) =>0x00007fca0c08a800 JavaThread "Service Thread" daemon [_thread_new, id=29237, stack(0x0000000000000000,0x0000000000000000)] 0x00007fca0c088000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=29236, stack(0x00007fca10e36000,0x00007fca10f37000)] 0x00007fca0c085800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=29235, stack(0x00007fca10f37000,0x00007fca11038000)] 0x00007fca0c084000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=29234, stack(0x00007fca11038000,0x00007fca11139000)] 0x00007fca0c064800 JavaThread "Finalizer" daemon [_thread_blocked, id=29233, stack(0x00007fca11139000,0x00007fca1123a000)] 0x00007fca0c062800 JavaThread "Reference Handler" daemon [_thread_blocked, id=29232, stack(0x00007fca1123a000,0x00007fca1133b000)] 0x00007fca0c008800 JavaThread "main" [_thread_in_vm, id=29230, stack(0x00007fca12195000,0x00007fca12296000)] Other Threads: 0x00007fca0c05e000 VMThread [stack: 0x00007fca1133b000,0x00007fca1143c000] [id=29231] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event]) [0x00007fca0c006bc0] PeriodicTask_lock - owner thread: 0x00007fca0c008800 Heap def new generation total 4800K, used 343K [0x00000000eb400000, 0x00000000eb930000, 0x00000000f0750000) eden space 4288K, 8% used [0x00000000eb400000, 0x00000000eb455e40, 0x00000000eb830000) from space 512K, 0% used [0x00000000eb830000, 0x00000000eb830000, 0x00000000eb8b0000) to space 512K, 0% used [0x00000000eb8b0000, 0x00000000eb8b0000, 0x00000000eb930000) tenured generation total 10624K, used 0K [0x00000000f0750000, 0x00000000f11b0000, 0x00000000fae00000) the space 10624K, 0% used [0x00000000f0750000, 0x00000000f0750000, 0x00000000f0750200, 0x00000000f11b0000) compacting perm gen total 21248K, used 2132K [0x00000000fae00000, 0x00000000fc2c0000, 0x0000000100000000) the space 21248K, 10% used [0x00000000fae00000, 0x00000000fb015148, 0x00000000fb015200, 0x00000000fc2c0000) No shared spaces configured. Card table byte_map: [0x00007fca117bd000,0x00007fca11864000] byte_map_base: 0x00007fca11063000 Polling page: 0x00007fca1332b000 Code Cache [0x00007fca09000000, 0x00007fca09270000, 0x00007fca0c000000) total_blobs=156 nmethods=0 adapters=126 free_code_cache=48779Kb largest_free_block=49950080 Compilation events (0 events): No events GC Heap History (0 events): No events Deoptimization events (0 events): No events Internal exceptions (1 events): Event: 0.027 Thread 0x00007fca0c008800 Threw 0x00000000eb410380 at /HUDSON/workspace/7u-2-build-linux-amd64/jdk7u67/1368/hotspot/src/share/vm/prims/jni.cpp:3991 Events (10 events): Event: 0.058 loading class 0x00007fca11701880 Event: 0.058 loading class 0x00007fca11701880 done Event: 0.058 loading class 0x00007fca1170df80 Event: 0.058 loading class 0x00007fca1170df80 done Event: 0.058 loading class 0x00007fca116c8ee0 Event: 0.058 loading class 0x00007fca116c8ee0 done Event: 0.058 Thread 0x00007fca0c084000 Thread added: 0x00007fca0c084000 Event: 0.058 Thread 0x00007fca0c085800 Thread added: 0x00007fca0c085800 Event: 0.059 Thread 0x00007fca0c088000 Thread added: 0x00007fca0c088000 Event: 0.059 Thread 0x00007fca0c08a800 Thread added: 0x00007fca0c08a800 .....

IDEA中Tomcat服务器重启后报异常怎么解决?

``` java -Dcatalina.base=C:\Users\wx\.IntelliJIdea2017.3\system\tomcat\Tomcat_7_0_96_study_2 "-Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 7.0" "-Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 7.0\temp" -Dcom.sun.management.jmxremote= -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.password.file=C:\Users\wx\.IntelliJIdea2017.3\system\tomcat\Tomcat_7_0_96_study_2\jmxremote.password -Dcom.sun.management.jmxremote.access.file=C:\Users\wx\.IntelliJIdea2017.3\system\tomcat\Tomcat_7_0_96_study_2\jmxremote.access -Djava.rmi.server.hostname=127.0.0.1 -cp "C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\bootstrap.jar;C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\tomcat-juli.jar" org.apache.catalina.startup.Bootstrap start [2020-02-28 12:09:58,816] Artifact Filter:war exploded: Waiting for server connection to start artifact deployment... 二月 28, 2020 12:09:59 下午 org.apache.catalina.startup.VersionLoggerListener log INFO: Server version: Apache Tomcat/7.0.96 二月 28, 2020 12:09:59 下午 org.apache.catalina.startup.VersionLoggerListener log INFO: Server built: Jul 24 2019 13:00:10 UTC 二月 28, 2020 12:09:59 下午 org.apache.catalina.startup.VersionLoggerListener log INFO: Server number: 7.0.96.0 二月 28, 2020 12:09:59 下午 org.apache.catalina.startup.VersionLoggerListener log INFO: OS Name: Windows 8 二月 28, 2020 12:09:59 下午 org.apache.catalina.startup.VersionLoggerListener log INFO: OS Version: 6.2 二月 28, 2020 12:09:59 下午 org.apache.catalina.startup.VersionLoggerListener log INFO: Architecture: amd64 二月 28, 2020 12:09:59 下午 org.apache.catalina.startup.VersionLoggerListener log INFO: Java Home: C:\Program Files\Java\jdk1.7.0_15\jre 二月 28, 2020 12:09:59 下午 org.apache.catalina.startup.VersionLoggerListener log INFO: JVM Version: 1.7.0_15-b03 二月 28, 2020 12:09:59 下午 org.apache.catalina.startup.VersionLoggerListener log INFO: JVM Vendor: Oracle Corporation 二月 28, 2020 12:09:59 下午 org.apache.catalina.startup.VersionLoggerListener log INFO: CATALINA_BASE: C:\Users\wx\.IntelliJIdea2017.3\system\tomcat\Tomcat_7_0_96_study_2 二月 28, 2020 12:09:59 下午 org.apache.catalina.startup.VersionLoggerListener log INFO: CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 7.0 二月 28, 2020 12:09:59 下午 org.apache.catalina.startup.VersionLoggerListener log INFO: Command line argument: -Dcatalina.base=C:\Users\wx\.IntelliJIdea2017.3\system\tomcat\Tomcat_7_0_96_study_2 二月 28, 2020 12:09:59 下午 org.apache.catalina.startup.VersionLoggerListener log INFO: Command line argument: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 7.0 二月 28, 2020 12:09:59 下午 org.apache.catalina.startup.VersionLoggerListener log INFO: Command line argument: -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 7.0\temp 二月 28, 2020 12:09:59 下午 org.apache.catalina.startup.VersionLoggerListener log INFO: Command line argument: -Dcom.sun.management.jmxremote= 二月 28, 2020 12:09:59 下午 org.apache.catalina.startup.VersionLoggerListener log INFO: Command line argument: -Dcom.sun.management.jmxremote.port=1099 二月 28, 2020 12:09:59 下午 org.apache.catalina.startup.VersionLoggerListener log INFO: Command line argument: -Dcom.sun.management.jmxremote.ssl=false 二月 28, 2020 12:09:59 下午 org.apache.catalina.startup.VersionLoggerListener log INFO: Command line argument: -Dcom.sun.management.jmxremote.password.file=C:\Users\wx\.IntelliJIdea2017.3\system\tomcat\Tomcat_7_0_96_study_2\jmxremote.password 二月 28, 2020 12:09:59 下午 org.apache.catalina.startup.VersionLoggerListener log INFO: Command line argument: -Dcom.sun.management.jmxremote.access.file=C:\Users\wx\.IntelliJIdea2017.3\system\tomcat\Tomcat_7_0_96_study_2\jmxremote.access 二月 28, 2020 12:09:59 下午 org.apache.catalina.startup.VersionLoggerListener log INFO: Command line argument: -Djava.rmi.server.hostname=127.0.0.1 二月 28, 2020 12:09:59 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.7.0_15\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:\oracle\applocation\bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;D:\Program Files\Microsoft SQL Server\100\Tools\Binn\;D:\Program Files\Microsoft SQL Server\100\DTS\Binn\;D:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;D:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Java\jdk1.7.0_15\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Java\jdk1.8.0_201\bin;C:\AppServ\Apache24\bin;C:\AppServ\php5;C:\AppServ\MySQL\bin;C:\Users\wx\AppData\Local\Microsoft\WindowsApps;;. 二月 28, 2020 12:09:59 下午 org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-8080"] 二月 28, 2020 12:09:59 下午 org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["ajp-bio-8009"] 二月 28, 2020 12:09:59 下午 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 486 ms 二月 28, 2020 12:09:59 下午 org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina 二月 28, 2020 12:09:59 下午 org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.96 二月 28, 2020 12:09:59 下午 org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-8080"] 二月 28, 2020 12:09:59 下午 org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["ajp-bio-8009"] 二月 28, 2020 12:09:59 下午 org.apache.catalina.startup.Catalina start INFO: Server startup in 45 ms Connected to server [2020-02-28 12:09:59,866] Artifact Filter:war exploded: Artifact is being deployed, please wait... 二月 28, 2020 12:10:00 下午 org.apache.catalina.deploy.WebXml setVersion WARNING: Unknown version string [4.0]. Default version will be used. 二月 28, 2020 12:10:00 下午 org.apache.catalina.core.ContainerBase addChildInternal SEVERE: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1018) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:994) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:662) at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1899) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:792) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:619) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:566) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:792) at com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468) at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1486) at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:96) at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1327) at java.security.AccessController.doPrivileged(Native Method) at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1426) at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:847) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322) at sun.rmi.transport.Transport$1.run(Transport.java:177) at sun.rmi.transport.Transport$1.run(Transport.java:174) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:173) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.IllegalArgumentException: Invalid <url-pattern> Servlet01 in servlet mapping at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3511) at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3486) at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1452) at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1300) at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:881) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:388) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5606) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) ... 42 more 二月 28, 2020 12:10:00 下午 org.apache.tomcat.util.modeler.BaseModelMBean invoke SEVERE: Exception invoking method manageApp java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1022) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:994) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:662) at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1899) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:792) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:619) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:566) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:792) at com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468) at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1486) at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:96) at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1327) at java.security.AccessController.doPrivileged(Native Method) at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1426) at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:847) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322) at sun.rmi.transport.Transport$1.run(Transport.java:177) at sun.rmi.transport.Transport$1.run(Transport.java:174) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:173) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) 二月 28, 2020 12:10:00 下午 org.apache.tomcat.util.modeler.BaseModelMBean invoke SEVERE: Exception invoking method createStandardContext javax.management.RuntimeOperationsException: Exception invoking method manageApp at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:309) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:792) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:619) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:566) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:792) at com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468) at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1486) at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:96) at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1327) at java.security.AccessController.doPrivileged(Native Method) at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1426) at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:847) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322) at sun.rmi.transport.Transport$1.run(Transport.java:177) at sun.rmi.transport.Transport$1.run(Transport.java:174) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:173) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1022) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:994) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:662) at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1899) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301) ... 33 more [2020-02-28 12:10:00,214] Artifact Filter:war exploded: Error during artifact deployment. See server log for details. 二月 28, 2020 12:10:09 下午 org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\manager 二月 28, 2020 12:10:09 下午 org.apache.catalina.startup.HostConfig deployDirectory INFO: Deployment of web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\manager has finished in 143 ms ``` ![图片说明](https://img-ask.csdn.net/upload/202002/28/1582873199_268932.png) **上面是异常代码,下面是一部分截图,然后访问jsp页面或servlet页面也不会404,就只是空白页面**

mybatisplus自动生成的代码为什么导入的包路径错误?

## 第一次使用Mybatis-plus,在做完配置之后,点击mp:code,生成的代码如下: 很多文件中都是包的路径错误,这是什么情况啊,。。。。应该怎么解决呢??? 这里是包的路径import com.baomidou.mybatisplus.annotation.TableId; 生成的是import com.baomidou.mybatisplus.annotations.TableId; ![图片说明](https://img-ask.csdn.net/upload/201811/30/1543546984_436119.png) 这里路径应该为import com.baomidou.mybatisplus.extension.service.IService; 结果生成了import com.baomidou.framework.service.IService; ![图片说明](https://img-ask.csdn.net/upload/201811/30/1543547119_100572.png) 配置文件如下: 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://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.wuyunfeng</groupId> <artifactId>TestPlus</artifactId> <version>1.0-SNAPSHOT</version> <packaging>war</packaging> <name>TestPlus Maven Webapp</name> <url>http://www.wuyunfeng.com</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.target>1.7</maven.compiler.target> <!-- spring版本号 --> <spring.version>4.3.5.RELEASE</spring.version> <!-- mybatis版本号 --> <mybatis.version>3.4.1</mybatis.version> <!-- log4j日志文件管理包版本 --> <slf4j.version>1.7.12</slf4j.version> <log4j.version>1.2.17</log4j.version> </properties> <dependencies> <!-- 单元测试 --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <!-- 表示开发的时候引入,发布的时候不会加载此包 --> <scope>test</scope> </dependency> <!-- java ee包 --> <dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>7.0</version> </dependency> <!-- 导入mybatis-plus包 start --> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus</artifactId> <version>3.0.6</version> </dependency> <dependency> <groupId>org.apache.velocity</groupId> <artifactId>velocity</artifactId> <version>1.7</version> </dependency> <!-- 导入mybatis-plus包 end --> <!-- 数据库驱动 --> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.41</version> </dependency> <!-- 导入dbcp的jar包,用来在applicationContext.xml中配置数据库 --> <dependency> <groupId>commons-dbcp</groupId> <artifactId>commons-dbcp</artifactId> <version>1.4</version> </dependency> <!-- jstl标签类 --> <dependency> <groupId>jstl</groupId> <artifactId>jstl</artifactId> <version>1.2</version> </dependency> <dependency> <groupId>taglibs</groupId> <artifactId>standard</artifactId> <version>1.1.2</version> </dependency> <!-- log start --> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>${log4j.version}</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>${slf4j.version}</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> <version>${slf4j.version}</version> </dependency> <!-- log END --> <!-- 格式化对象,方便输出日志 --> <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.6</version> </dependency> <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-mapper-asl</artifactId> <version>1.9.13</version> </dependency> <!-- 上传组件包 start --> <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> <version>1.3.1</version> </dependency> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.4</version> </dependency> <dependency> <groupId>commons-codec</groupId> <artifactId>commons-codec</artifactId> <version>1.10</version> </dependency> <!-- 上传组件包 end --> <!-- AL相关添加 --> <dependency> <groupId>net.sourceforge.jexcelapi</groupId> <artifactId>jxl</artifactId> <version>2.6</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>3.8</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>3.9</version> </dependency> <!-- AL相关添加 --> <!-- https://mvnrepository.com/artifact/net.sourceforge.javacsv/javacsv --> <dependency> <groupId>net.sourceforge.javacsv</groupId> <artifactId>javacsv</artifactId> <version>2.0</version> </dependency> <!-- spring框架包 start --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-tx</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-jdbc</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-aop</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-oxm</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context-support</artifactId> <version>${spring.version}</version> </dependency> <!-- spring框架包 end --> <!-- spring 新添加的可选包 项目中未用到--> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-expression</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-orm</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-aspects</artifactId> <version>${spring.version}</version> </dependency> </dependencies> <build> <finalName>TestPlus</finalName> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> <plugin> <groupId>com.baomidou</groupId> <artifactId>mybatisplus-maven-plugin</artifactId> <version>1.0</version> <configuration> <!-- 输出目录(默认java.io.tmpdir) --> <outputDir>/run/media/ry03/wuyunfeng/workspace/IDEA/TestPlus/src/main/java</outputDir> <!-- 是否覆盖同名文件(默认false) --> <fileOverride>true</fileOverride> <!-- mapper.xml 中添加二级缓存配置(默认true) --> <enableCache>false</enableCache> <!-- 开发者名称 --> <author>WuYunfeng</author> <!-- 是否开启 ActiveRecord 模式(默认true) --> <activeRecord>false</activeRecord> <!-- 数据源配置,( **必配** ) --> <dataSource> <driverName>com.mysql.jdbc.Driver</driverName> <url>jdbc:mysql://127.0.0.1:3306/testssm?useUnicode=true&amp;useSSL=false&amp;characterEncoding=utf-8</url> <username>root</username> <password>123456</password> </dataSource> <strategy> <!-- 字段生成策略,四种类型,从名称就能看出来含义: nochange(默认), underline_to_camel,(下划线转驼峰) remove_prefix,(去除第一个下划线的前部分,后面保持不变) remove_prefix_and_camel(去除第一个下划线的前部分,后面转驼峰) --> <naming>underline_to_camel</naming> <!-- 表前缀 --> <tablePrefix>bmd_</tablePrefix> <!--Entity中的ID生成策略(默认 id_worker)--> <idGenType>auto</idGenType> <!--自定义超类--> <!--<superServiceClass>com.baomidou.base.BaseService</superServiceClass>--> <!-- 要包含的表 与exclude 二选一配置--> <include> <property>user</property> <!--<property>message</property>--> </include> <!-- 要排除的表 --> <!--<exclude>--> <!--<property>schema_version</property>--> <!--</exclude>--> </strategy> <packageInfo> <!-- 父级包名称,如果不写,下面的service等就需要写全包名(默认com.baomidou) --> <parent>com.wuyunfeng</parent> <!-- service包名(默认service) --> <service>service</service> <!-- serviceImpl包名(默认service.impl) --> <serviceImpl>service.impl</serviceImpl> <!-- entity包名(默认entity) --> <entity>model</entity> <!-- mapper包名(默认mapper) --> <mapper>mapper</mapper> <!-- xml包名(默认mapper.xml) --> <xml>mapper.xml</xml> <!-- controller包名(默认controller) --> <controller>controller</controller> </packageInfo> </configuration> <dependencies> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.41</version> </dependency> </dependencies> </plugin> </plugins> </build> </project> ```

jfinal手册第一个快速入门的程序,如何通过tomcat发布到网上正常显示

我用的是java EE编程的 这是主程序 package projectTest; import com.jfinal.config.Constants; import com.jfinal.config.Handlers; import com.jfinal.config.Interceptors; import com.jfinal.config.JFinalConfig; import com.jfinal.config.Plugins; import com.jfinal.config.Routes; public class Test extends JFinalConfig { @Override public void configConstant(Constants me) { me.setDevMode(true); } @Override public void configRoute(Routes me) { me.add("/hello", HelloController.class); } @Override public void configPlugin(Plugins me) { } @Override public void configInterceptor(Interceptors me) { } @Override public void configHandler(Handlers me) { } } 这是HelloController程序 package projectTest; import com.jfinal.core.Controller; public class HelloController extends Controller { public void index() { renderText("Hello JFinal World."); } } 然后通过tomcat7.0发布(都是配置好了的),但是一直显示404错误,这是url:http://localhost:8080/hello 日志信息: 四月 20, 2016 3:42:59 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Server version: Apache Tomcat/7.0.68 四月 20, 2016 3:42:59 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Server built: Feb 8 2016 20:25:54 UTC 四月 20, 2016 3:42:59 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Server number: 7.0.68.0 四月 20, 2016 3:42:59 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: OS Name: Windows 8.1 四月 20, 2016 3:42:59 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: OS Version: 6.3 四月 20, 2016 3:42:59 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Architecture: amd64 四月 20, 2016 3:42:59 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Java Home: C:\Mine\Study\jdk7\jie7 四月 20, 2016 3:42:59 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: JVM Version: 1.7.0_80-b15 四月 20, 2016 3:42:59 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: JVM Vendor: Oracle Corporation 四月 20, 2016 3:42:59 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: CATALINA_BASE: C:\Mine\Study\tomcat 四月 20, 2016 3:42:59 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: CATALINA_HOME: C:\Mine\Study\tomcat 四月 20, 2016 3:42:59 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Dcatalina.base=C:\Mine\Study\tomcat 四月 20, 2016 3:42:59 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Dcatalina.home=C:\Mine\Study\tomcat 四月 20, 2016 3:42:59 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Dwtp.deploy=C:\Mine\Study\tomcat\webapps 四月 20, 2016 3:42:59 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Djava.endorsed.dirs=C:\Mine\Study\tomcat\endorsed 四月 20, 2016 3:42:59 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Dfile.encoding=GBK 四月 20, 2016 3:42:59 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent 信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Mine\Study\jdk7\jie7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Mine\Study\jdk7\bin;C:\Mine\Study\jdk7\jre\bin;. 四月 20, 2016 3:42:59 下午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["http-bio-8080"] 四月 20, 2016 3:42:59 下午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["ajp-bio-8009"] 四月 20, 2016 3:42:59 下午 org.apache.catalina.startup.Catalina load 信息: Initialization processed in 585 ms 四月 20, 2016 3:42:59 下午 org.apache.catalina.core.StandardService startInternal 信息: Starting service Catalina 四月 20, 2016 3:42:59 下午 org.apache.catalina.core.StandardEngine startInternal 信息: Starting Servlet Engine: Apache Tomcat/7.0.68 四月 20, 2016 3:42:59 下午 org.apache.catalina.startup.HostConfig deployDescriptor 信息: Deploying configuration descriptor C:\Mine\Study\tomcat\conf\Catalina\localhost\jfinal_demo.xml 四月 20, 2016 3:42:59 下午 org.apache.catalina.startup.HostConfig deployDescriptor 警告: A docBase C:\Mine\Study\tomcat\webapps\jfinal_demo inside the host appBase has been specified, and will be ignored 四月 20, 2016 3:42:59 下午 org.apache.catalina.startup.SetContextPropertiesRule begin 警告: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:jfinal_demo' did not find a matching property. 四月 20, 2016 3:42:59 下午 org.apache.catalina.startup.TldConfig execute 信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 四月 20, 2016 3:43:00 下午 org.apache.catalina.startup.HostConfig deployDescriptor 信息: Deployment of configuration descriptor C:\Mine\Study\tomcat\conf\Catalina\localhost\jfinal_demo.xml has finished in 669 ms 四月 20, 2016 3:43:00 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory C:\Mine\Study\tomcat\webapps\docs 四月 20, 2016 3:43:00 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory C:\Mine\Study\tomcat\webapps\docs has finished in 58 ms 四月 20, 2016 3:43:00 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory C:\Mine\Study\tomcat\webapps\examples 四月 20, 2016 3:43:00 下午 org.apache.catalina.core.ApplicationContext log 信息: ContextListener: contextInitialized() 四月 20, 2016 3:43:00 下午 org.apache.catalina.core.ApplicationContext log 信息: SessionListener: contextInitialized() 四月 20, 2016 3:43:00 下午 org.apache.catalina.core.ApplicationContext log 信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@2d4b90ff') 四月 20, 2016 3:43:00 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory C:\Mine\Study\tomcat\webapps\examples has finished in 363 ms 四月 20, 2016 3:43:00 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory C:\Mine\Study\tomcat\webapps\host-manager 四月 20, 2016 3:43:00 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory C:\Mine\Study\tomcat\webapps\host-manager has finished in 63 ms 四月 20, 2016 3:43:00 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory C:\Mine\Study\tomcat\webapps\manager 四月 20, 2016 3:43:00 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory C:\Mine\Study\tomcat\webapps\manager has finished in 78 ms 四月 20, 2016 3:43:00 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory C:\Mine\Study\tomcat\webapps\ROOT 四月 20, 2016 3:43:00 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory C:\Mine\Study\tomcat\webapps\ROOT has finished in 53 ms 四月 20, 2016 3:43:00 下午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["http-bio-8080"] 四月 20, 2016 3:43:00 下午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["ajp-bio-8009"] 四月 20, 2016 3:43:00 下午 org.apache.catalina.startup.Catalina start 信息: Server startup in 1338 ms 四月 20, 2016 3:43:01 下午 com.jfinal.core.ActionHandler warn 警告: 404 Action Not Found: / 求大大帮帮忙

springmvc视图解析器的prefix一定要配成全路径才能找到是为什么?

最近刚刚在尝试idea写代码,然后找了个配置尝试自己写,在进行jsp页面跳转的时候发现路径出了问题。 找了半天然后发现是视图解析器里面的prefix问题。 正确代码如下: ``` <!-- 配置视图解析器 显示ViewResolver --> <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/> <property name="prefix" value="/src/main/webapp/WEB-INF/views/"/> <property name="suffix" value=".jsp"/> </bean> ``` 错误代码如下: ``` <!-- 配置视图解析器 显示ViewResolver --> <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/> <property name="prefix" value="/WEB-INF/views/"/> <property name="suffix" value=".jsp"/> </bean> ``` 当我的prefix的路径写全的时候我才能进行页面跳转,而我按照错误代码写的时候就不能进行跳转页面报错404. 但是我在网上看了许多都是这样写的。。。然后搜了半天也没搜到和我类似的问题的。所以就在这里请教下各位大佬 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://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.liulin</groupId> <artifactId>test</artifactId> <version>1.0-SNAPSHOT</version> <packaging>war</packaging> <name>test Maven Webapp</name> <!-- FIXME change it to the project's website --> <url>http://www.example.com</url> <properties> <!-- 设置项目编码 --> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.target>1.7</maven.compiler.target> <!-- spring版本号 --> <spring.version>4.3.5.RELEASE</spring.version> <!-- mybatis版本号 --> <mybatis.version>3.4.1</mybatis.version> <!-- log4j日志文件管理包版本 --> <slf4j.version>1.7.7</slf4j.version> <log4j.version>1.2.17</log4j.version> <!-- jackson包版本 --> <jackson.version>2.5.0</jackson.version> </properties> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test</scope> </dependency> <!--添加java ee依赖--> <dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>7.0</version> </dependency> <!-- 实现slf4j接口并整合 --> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <version>1.2.2</version> </dependency> <!-- 添加JSON依赖 --> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.8.7</version> </dependency> <!-- 添加mysql驱动依赖 --> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.41</version> <scope>runtime</scope> </dependency> <!-- 添加数据库连接池 --> <dependency> <groupId>com.mchange</groupId> <artifactId>c3p0</artifactId> <version>0.9.5.2</version> </dependency> <!-- 添加MyBatis依赖 --> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>${mybatis.version}</version> </dependency> <!-- 添加mybatis/spring整合包依赖 --> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis-spring</artifactId> <version>1.3.1</version> </dependency> <!-- 添加Spring核心依赖 --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context-support</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-jdbc</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-tx</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>${spring.version}</version> </dependency> <!--添加servlet依赖--> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.0.1</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.servlet.jsp</groupId> <artifactId>jsp-api</artifactId> <version>2.2</version> <scope>provided</scope> </dependency> <!-- 添加JSTL标签类依赖 --> <dependency> <groupId>jstl</groupId> <artifactId>jstl</artifactId> <version>1.2</version> </dependency> <!-- 添加日志相关jar包 --> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.17</version> </dependency> </dependencies> <build> <finalName>test</finalName> <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) --> <plugins> <plugin> <artifactId>maven-clean-plugin</artifactId> <version>3.1.0</version> </plugin> <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging --> <plugin> <artifactId>maven-resources-plugin</artifactId> <version>3.0.2</version> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.0</version> </plugin> <plugin> <artifactId>maven-surefire-plugin</artifactId> <version>2.22.1</version> </plugin> <plugin> <artifactId>maven-war-plugin</artifactId> <version>3.2.2</version> </plugin> <plugin> <artifactId>maven-install-plugin</artifactId> <version>2.5.2</version> </plugin> <plugin> <artifactId>maven-deploy-plugin</artifactId> <version>2.8.2</version> </plugin> </plugins> </pluginManagement> </build> </project> ``` 配置详细图: 1. ![图片说明](https://img-ask.csdn.net/upload/201907/16/1563262460_481220.png) 2. ![图片说明](https://img-ask.csdn.net/upload/201907/16/1563262471_776644.png) 3. ![图片说明](https://img-ask.csdn.net/upload/201907/16/1563262488_239707.png)

springmvc出现了服务器启动报错。有大佬能帮忙解释一下嘛

``` D:\elpel\eclipse\apache-tomcat-7.0.93\bin\catalina.bat run [2019-05-12 08:18:18,569] Artifact untitled4:war exploded: Waiting for server connection to start artifact deployment... Using CATALINA_BASE: "C:\Users\50427\.IntelliJIdea2019.1\system\tomcat\Tomcat_7_0_933_untitled4" Using CATALINA_HOME: "D:\elpel\eclipse\apache-tomcat-7.0.93" Using CATALINA_TMPDIR: "D:\elpel\eclipse\apache-tomcat-7.0.93\temp" Using JRE_HOME: "C:\Program Files\Java\jdk1.8.0_191" Using CLASSPATH: "D:\elpel\eclipse\apache-tomcat-7.0.93\bin\bootstrap.jar;D:\elpel\eclipse\apache-tomcat-7.0.93\bin\tomcat-juli.jar" 浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log 淇℃伅: Server version: Apache Tomcat/7.0.93 浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log 淇℃伅: Server built: Feb 16 2019 17:13:17 UTC 浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log 淇℃伅: Server number: 7.0.93.0 浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log 淇℃伅: OS Name: Windows 10 浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log 淇℃伅: OS Version: 10.0 浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log 淇℃伅: Architecture: amd64 浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log 淇℃伅: Java Home: C:\Program Files\Java\jdk1.8.0_191\jre 浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log 淇℃伅: JVM Version: 1.8.0_191-b12 浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log 淇℃伅: JVM Vendor: Oracle Corporation 浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log 淇℃伅: CATALINA_BASE: C:\Users\50427\.IntelliJIdea2019.1\system\tomcat\Tomcat_7_0_933_untitled4 浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log 淇℃伅: CATALINA_HOME: D:\elpel\eclipse\apache-tomcat-7.0.93 浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log 淇℃伅: Command line argument: -Djava.util.logging.config.file=C:\Users\50427\.IntelliJIdea2019.1\system\tomcat\Tomcat_7_0_933_untitled4\conf\logging.properties 浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log 淇℃伅: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log 淇℃伅: Command line argument: -Dcom.sun.management.jmxremote= 浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log 淇℃伅: Command line argument: -Dcom.sun.management.jmxremote.port=1099 浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log 淇℃伅: Command line argument: -Dcom.sun.management.jmxremote.ssl=false 浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log 淇℃伅: Command line argument: -Dcom.sun.management.jmxremote.password.file=C:\Users\50427\.IntelliJIdea2019.1\system\tomcat\Tomcat_7_0_933_untitled4\jmxremote.password 浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log 淇℃伅: Command line argument: -Dcom.sun.management.jmxremote.access.file=C:\Users\50427\.IntelliJIdea2019.1\system\tomcat\Tomcat_7_0_933_untitled4\jmxremote.access 浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log 淇℃伅: Command line argument: -Djava.rmi.server.hostname=127.0.0.1 浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log 淇℃伅: Command line argument: -Djdk.tls.ephemeralDHKeySize=2048 浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log 淇℃伅: Command line argument: -Dignore.endorsed.dirs= 浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log 淇℃伅: Command line argument: -Dcatalina.base=C:\Users\50427\.IntelliJIdea2019.1\system\tomcat\Tomcat_7_0_933_untitled4 浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log 淇℃伅: Command line argument: -Dcatalina.home=D:\elpel\eclipse\apache-tomcat-7.0.93 浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log 淇℃伅: Command line argument: -Djava.io.tmpdir=D:\elpel\eclipse\apache-tomcat-7.0.93\temp 浜旀湀 12, 2019 8:18:19 涓嬪崍 org.apache.catalina.core.AprLifecycleListener lifecycleEvent 淇℃伅: Loaded APR based Apache Tomcat Native library 1.2.21 using APR version 1.6.5. 浜旀湀 12, 2019 8:18:20 涓嬪崍 org.apache.catalina.core.AprLifecycleListener lifecycleEvent 淇℃伅: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. 浜旀湀 12, 2019 8:18:20 涓嬪崍 org.apache.catalina.core.AprLifecycleListener initializeSSL 淇℃伅: OpenSSL successfully initialized (OpenSSL 1.1.1a 20 Nov 2018) 浜旀湀 12, 2019 8:18:20 涓嬪崍 org.apache.coyote.AbstractProtocol init 淇℃伅: Initializing ProtocolHandler ["http-apr-8080"] 浜旀湀 12, 2019 8:18:20 涓嬪崍 org.apache.coyote.AbstractProtocol init 淇℃伅: Initializing ProtocolHandler ["ajp-apr-8009"] 浜旀湀 12, 2019 8:18:20 涓嬪崍 org.apache.catalina.startup.Catalina load 淇℃伅: Initialization processed in 1023 ms 浜旀湀 12, 2019 8:18:20 涓嬪崍 org.apache.catalina.core.StandardService startInternal 淇℃伅: Starting service Catalina 浜旀湀 12, 2019 8:18:20 涓嬪崍 org.apache.catalina.core.StandardEngine startInternal 淇℃伅: Starting Servlet Engine: Apache Tomcat/7.0.93 浜旀湀 12, 2019 8:18:20 涓嬪崍 org.apache.coyote.AbstractProtocol start 淇℃伅: Starting ProtocolHandler ["http-apr-8080"] 浜旀湀 12, 2019 8:18:20 涓嬪崍 org.apache.coyote.AbstractProtocol start 淇℃伅: Starting ProtocolHandler ["ajp-apr-8009"] 浜旀湀 12, 2019 8:18:20 涓嬪崍 org.apache.catalina.startup.Catalina start 淇℃伅: Server startup in 106 ms Connected to server [2019-05-12 08:18:20,751] Artifact untitled4:war exploded: Artifact is being deployed, please wait... 浜旀湀 12, 2019 8:18:21 涓嬪崍 org.apache.catalina.deploy.WebXml setVersion 璀﹀憡: Unknown version string [4.0]. Default version will be used. 浜旀湀 12, 2019 8:18:22 涓嬪崍 org.apache.catalina.startup.TldConfig execute 淇℃伅: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 2019-05-12 20:18:22,657 INFO [org.springframework.web.servlet.DispatcherServlet] - FrameworkServlet 'DispatcherServlet': initialization started 2019-05-12 20:18:22,691 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - Refreshing WebApplicationContext for namespace 'DispatcherServlet-servlet': startup date [Sun May 12 20:18:22 CST 2019]; root of context hierarchy 2019-05-12 20:18:22,734 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from ServletContext resource [/WEB-INF/DispatcherServlet-servlet.xml] 2019-05-12 20:18:23,016 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@643a7005: defining beans [org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping #0,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter #0,/user.do,org.springframework.web.servlet.view.InternalResourceViewResolver#0]; root of factory hierarchy 2019-05-12 20:18:23,029 INFO [org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping] - Mapped URL path [/user.do] onto handler '/user.do' 2019-05-12 20:18:23,123 INFO [org.springframework.web.servlet.DispatcherServlet] - FrameworkServlet 'DispatcherServlet': initialization completed in 462 ms [2019-05-12 08:18:23,146] Artifact untitled4:war exploded: Artifact is deployed successfully [2019-05-12 08:18:23,147] Artifact untitled4:war exploded: Deploy took 2,395 milliseconds 浜旀湀 12, 2019 8:18:30 涓嬪崍 org.apache.catalina.startup.HostConfig deployDirectory 淇℃伅: Deploying web application directory D:\elpel\eclipse\apache-tomcat-7.0.93\webapps\manager 浜旀湀 12, 2019 8:18:30 涓嬪崍 org.apache.catalina.startup.HostConfig deployDirectory 淇℃伅: Deployment of web application directory D:\elpel\eclipse\apache-tomcat-7.0.93\webapps\manager has finished in 74 ms ```

如何部署travis自动构建,我的失败了,我不知道如何解决

<div class="post-text" itemprop="text"> <p>I'm getting a trouble while build my travis file. pop an error <code>package errorX: unrecognized import path "errorX" (import path does not begin with hostname)</code>, and I can't tell which part causes it.</p> <pre class="lang-golang prettyprint-override"><code>language: go go: - 1.9.x - 1.10.x - 1.11.x env: - GOARCH=amd64 - GOARCH=386 sudo: true go_import_path: github.com/fwhezfwhez/errorx before_install: - go get github.com/fwhezfwhez/errorx - go get github.com/fwhezfwhez/go-queue script: - go build example/main.go notifications: email: false </code></pre> <p>result</p> <pre><code>Worker information hostname: a4c1b320-2318-4217-a009-555a967eb050@1.production-2-worker-org-gce-94gz version: v6.2.0 https://github.com/travis-ci/worker/tree/5e5476e01646095f48eec13196fdb3faf8f5cbf7 instance: travis-job-638b4bba-9fef-43d4-b294-ee56fd7486bf travis-ci-garnet-trusty-1512502259-986baf0 (via amqp) startup: 9.418692015s system_info Build system information Build language: go Build group: stable Build dist: trusty Build id: 485760232 Job id: 485760235 Runtime kernel version: 4.4.0-101-generic travis-build version: f05bd1fd8 Build image provisioning date and time Tue Dec 5 19:58:13 UTC 2017 Operating System Details Distributor ID: Ubuntu Description: Ubuntu 14.04.5 LTS Release: 14.04 Codename: trusty Cookbooks Version 7c2c6a6 https://github.com/travis-ci/travis-cookbooks/tree/7c2c6a6 git version git version 2.15.1 bash version GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu) gcc version gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. docker version Client: Version: 17.09.0-ce API version: 1.32 Go version: go1.8.3 Git commit: afdb6d4 Built: Tue Sep 26 22:42:38 2017 OS/Arch: linux/amd64 Server: Version: 17.09.0-ce API version: 1.32 (minimum version 1.12) Go version: go1.8.3 Git commit: afdb6d4 Built: Tue Sep 26 22:41:20 2017 OS/Arch: linux/amd64 Experimental: false clang version clang version 5.0.0 (tags/RELEASE_500/final) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /usr/local/clang-5.0.0/bin jq version jq-1.5 bats version Bats 0.4.0 shellcheck version 0.4.6 shfmt version v2.0.0 ccache version ccache version 3.1.9 Copyright (C) 2002-2007 Andrew Tridgell Copyright (C) 2009-2011 Joel Rosdahl This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. cmake version cmake version 3.9.2 CMake suite maintained and supported by Kitware (kitware.com/cmake). heroku version heroku-cli/6.14.39-addc925 (linux-x64) node-v9.2.0 imagemagick version Version: ImageMagick 6.7.7-10 2017-07-31 Q16 http://www.imagemagick.org md5deep version 4.2 mercurial version Mercurial Distributed SCM (version 4.2.2) (see https://mercurial-scm.org for more information) Copyright (C) 2005-2017 Matt Mackall and others This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. mysql version mysql Ver 14.14 Distrib 5.6.33, for debian-linux-gnu (x86_64) using EditLine wrapper openssl version OpenSSL 1.0.1f 6 Jan 2014 packer version Packer v1.0.2 Your version of Packer is out of date! The latest version is 1.1.2. You can update by downloading from www.packer.io postgresql client version psql (PostgreSQL) 9.6.6 ragel version Ragel State Machine Compiler version 6.8 Feb 2013 Copyright (c) 2001-2009 by Adrian Thurston subversion version svn, version 1.8.8 (r1568071) compiled Aug 10 2017, 17:20:39 on x86_64-pc-linux-gnu Copyright (C) 2013 The Apache Software Foundation. This software consists of contributions made by many people; see the NOTICE file for more information. Subversion is open source software, see http://subversion.apache.org/ The following repository access (RA) modules are available: * ra_svn : Module for accessing a repository using the svn network protocol. - with Cyrus SASL authentication - handles 'svn' scheme * ra_local : Module for accessing a repository on local disk. - handles 'file' scheme * ra_serf : Module for accessing a repository via WebDAV protocol using serf. - using serf 1.3.3 - handles 'http' scheme - handles 'https' scheme sudo version Sudo version 1.8.9p5 Configure options: --prefix=/usr -v --with-all-insults --with-pam --with-fqdn --with-logging=syslog --with-logfac=authpriv --with-env-editor --with-editor=/usr/bin/editor --with-timeout=15 --with-password-timeout=0 --with-passprompt=[sudo] password for %p: --without-lecture --with-tty-tickets --disable-root-mailer --enable-admin-flag --with-sendmail=/usr/sbin/sendmail --with-timedir=/var/lib/sudo --mandir=/usr/share/man --libexecdir=/usr/lib/sudo --with-sssd --with-sssd-lib=/usr/lib/x86_64-linux-gnu --with-selinux Sudoers policy plugin version 1.8.9p5 Sudoers file grammar version 43 Sudoers path: /etc/sudoers Authentication methods: 'pam' Syslog facility if syslog is being used for logging: authpriv Syslog priority to use when user authenticates successfully: notice Syslog priority to use when user authenticates unsuccessfully: alert Send mail if the user is not in sudoers Use a separate timestamp for each user/tty combo Lecture user the first time they run sudo Root may run sudo Allow some information gathering to give useful error messages Require fully-qualified hostnames in the sudoers file Visudo will honor the EDITOR environment variable Set the LOGNAME and USER environment variables Length at which to wrap log file lines (0 for no wrap): 80 Authentication timestamp timeout: 15.0 minutes Password prompt timeout: 0.0 minutes Number of tries to enter a password: 3 Umask to use or 0777 to use user's: 022 Path to mail program: /usr/sbin/sendmail Flags for mail program: -t Address to send mail to: root Subject line for mail messages: *** SECURITY information for %h *** Incorrect password message: Sorry, try again. Path to authentication timestamp dir: /var/lib/sudo Default password prompt: [sudo] password for %p: Default user to run commands as: root Value to override user's $PATH with: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin Path to the editor for use by visudo: /usr/bin/editor When to require a password for 'list' pseudocommand: any When to require a password for 'verify' pseudocommand: all File descriptors &gt;= 3 will be closed before executing a command Environment variables to check for sanity: TZ TERM LINGUAS LC_* LANGUAGE LANG COLORTERM Environment variables to remove: RUBYOPT RUBYLIB PYTHONUSERBASE PYTHONINSPECT PYTHONPATH PYTHONHOME TMPPREFIX ZDOTDIR READNULLCMD NULLCMD FPATH PERL5DB PERL5OPT PERL5LIB PERLLIB PERLIO_DEBUG JAVA_TOOL_OPTIONS SHELLOPTS GLOBIGNORE PS4 BASH_ENV ENV TERMCAP TERMPATH TERMINFO_DIRS TERMINFO _RLD* LD_* PATH_LOCALE NLSPATH HOSTALIASES RES_OPTIONS LOCALDOMAIN CDPATH IFS Environment variables to preserve: JAVA_HOME TRAVIS CI DEBIAN_FRONTEND XAUTHORIZATION XAUTHORITY PS2 PS1 PATH LS_COLORS KRB5CCNAME HOSTNAME HOME DISPLAY COLORS Locale to use while parsing sudoers: C Directory in which to store input/output logs: /var/log/sudo-io File in which to store the input/output log: %{seq} Add an entry to the utmp/utmpx file when allocating a pty PAM service name to use PAM service name to use for login shells Create a new PAM session for the command to run in Maximum I/O log sequence number: 0 Local IP address and netmask pairs: 10.240.0.28/255.255.255.255 172.17.0.1/255.255.0.0 Sudoers I/O plugin version 1.8.9p5 gzip version gzip 1.6 Copyright (C) 2007, 2010, 2011 Free Software Foundation, Inc. Copyright (C) 1993 Jean-loup Gailly. This is free software. You may redistribute copies of it under the terms of the GNU General Public License &lt;http://www.gnu.org/licenses/gpl.html&gt;. There is NO WARRANTY, to the extent permitted by law. Written by Jean-loup Gailly. zip version Copyright (c) 1990-2008 Info-ZIP - Type 'zip "-L"' for software license. This is Zip 3.0 (July 5th 2008), by Info-ZIP. Currently maintained by E. Gordon. Please send bug reports to the authors using the web page at www.info-zip.org; see README for details. Latest sources and executables are at ftp://ftp.info-zip.org/pub/infozip, as of above date; see http://www.info-zip.org/ for other sites. Compiled with gcc 4.8.2 for Unix (Linux ELF) on Oct 21 2013. Zip special compilation options: USE_EF_UT_TIME (store Universal Time) BZIP2_SUPPORT (bzip2 library version 1.0.6, 6-Sept-2010) bzip2 code and library copyright (c) Julian R Seward (See the bzip2 license for terms of use) SYMLINK_SUPPORT (symbolic links supported) LARGE_FILE_SUPPORT (can read and write large files on file system) ZIP64_SUPPORT (use Zip64 to store large files in archives) UNICODE_SUPPORT (store and read UTF-8 Unicode paths) STORE_UNIX_UIDs_GIDs (store UID/GID sizes/values using new extra field) UIDGID_NOT_16BIT (old Unix 16-bit UID/GID extra field not used) [encryption, version 2.91 of 05 Jan 2007] (modified for Zip 3) Encryption notice: The encryption code of this program is not copyrighted and is put in the public domain. It was originally written in Europe and, to the best of our knowledge, can be freely distributed in both source and object forms from any country, including the USA under License Exception TSU of the U.S. Export Administration Regulations (section 740.13(e)) of 6 June 2002. Zip environment options: ZIP: [none] ZIPOPT: [none] vim version VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 24 2016 16:43:18) Included patches: 1-52 Extra patches: 8.0.0056 Modified by pkg-vim-maintainers@lists.alioth.debian.org Compiled by buildd@ Huge version without GUI. Features included (+) or not (-): +acl +farsi +mouse_netterm +syntax +arabic +file_in_path +mouse_sgr +tag_binary +autocmd +find_in_path -mouse_sysmouse +tag_old_static -balloon_eval +float +mouse_urxvt -tag_any_white -browse +folding +mouse_xterm -tcl ++builtin_terms -footer +multi_byte +terminfo +byte_offset +fork() +multi_lang +termresponse +cindent +gettext -mzscheme +textobjects -clientserver -hangul_input +netbeans_intg +title -clipboard +iconv +path_extra -toolbar +cmdline_compl +insert_expand -perl +user_commands +cmdline_hist +jumplist +persistent_undo +vertsplit +cmdline_info +keymap +postscript +virtualedit +comments +langmap +printer +visual +conceal +libcall +profile +visualextra +cryptv +linebreak +python +viminfo +cscope +lispindent -python3 +vreplace +cursorbind +listcmds +quickfix +wildignore +cursorshape +localmap +reltime +wildmenu +dialog_con -lua +rightleft +windows +diff +menu -ruby +writebackup +digraphs +mksession +scrollbind -X11 -dnd +modify_fname +signs -xfontset -ebcdic +mouse +smartindent -xim +emacs_tags -mouseshape -sniff -xsmp +eval +mouse_dec +startuptime -xterm_clipboard +ex_extra +mouse_gpm +statusline -xterm_save +extra_search -mouse_jsbterm -sun_workshop -xpm system vimrc file: "$VIM/vimrc" user vimrc file: "$HOME/.vimrc" 2nd user vimrc file: "~/.vim/vimrc" user exrc file: "$HOME/.exrc" fall-back for $VIM: "/usr/share/vim" Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 Linking: gcc -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -o vim -lm -ltinfo -lnsl -lselinux -lacl -lattr -lgpm -ldl -L/usr/lib/python2.7/config-x86_64-linux-gnu -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions iptables version iptables v1.4.21 curl version curl 7.35.0 (x86_64-pc-linux-gnu) libcurl/7.35.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 librtmp/2.3 wget version GNU Wget 1.15 built on linux-gnu. rsync version rsync version 3.1.0 protocol version 31 gimme version v1.2.0 nvm version 0.33.6 perlbrew version /home/travis/perl5/perlbrew/bin/perlbrew - App::perlbrew/0.80 phpenv version rbenv 1.1.1-25-g6aa70b6 rvm version rvm 1.29.3 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io] default ruby version ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux] CouchDB version couchdb 1.6.1 ElasticSearch version 5.5.0 Installed Firefox version firefox 56.0.2 MongoDB version MongoDB 3.4.10 [1mPhantomJS version 2.1.1 Pre-installed PostgreSQL versions 9.2.24 9.3.20 9.4.15 9.5.10 9.6.6 RabbitMQ Version 3.6.14 Redis version redis-server 4.0.6 riak version 2.2.3 Pre-installed Go versions 1.7.4 ant version Apache Ant(TM) version 1.9.3 compiled on April 8 2014 mvn version Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T07:58:13Z) Maven home: /usr/local/maven-3.5.2 Java version: 1.8.0_151, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-8-oracle/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "4.4.0-98-generic", arch: "amd64", family: "unix" gradle version ------------------------------------------------------------ Gradle 4.0.1 ------------------------------------------------------------ Build time: 2017-07-07 14:02:41 UTC Revision: 38e5dc0f772daecca1d2681885d3d85414eb6826 Groovy: 2.4.11 Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015 JVM: 1.8.0_151 (Oracle Corporation 25.151-b12) OS: Linux 4.4.0-98-generic amd64 lein version Leiningen 2.8.1 on Java 1.8.0_151 Java HotSpot(TM) 64-Bit Server VM Pre-installed Node.js versions v4.8.6 v6.12.0 v6.12.1 v8.9 v8.9.1 phpenv versions system 5.6 * 5.6.32 (set by /home/travis/.phpenv/version) 7.0 7.0.25 7.1 7.1.11 hhvm hhvm-stable composer --version Composer version 1.5.2 2017-09-11 16:59:25 Pre-installed Ruby versions ruby-2.2.7 ruby-2.3.4 ruby-2.4.1 Updating gimme git.checkout 0.69s$ git clone --depth=50 --branch=master https://github.com/fwhezfwhez/errorx.git fwhezfwhez/errorx Cloning into 'fwhezfwhez/errorx'... remote: Enumerating objects: 74, done. remote: Counting objects: 100% (74/74), done. remote: Compressing objects: 100% (50/50), done. Receiving objects: 100% (172/172), 47.28 KiB | 2.06 MiB/s, done. remote: Total 172 (delta 41), reused 53 (delta 22), pack-reused 98 Resolving deltas: 100% (90/90), done. $ cd fwhezfwhez/errorx $ git checkout -qf ec0ba15dd5fef2db0c8b9989002a18d768e025de Setting environment variables from .travis.yml $ export GOARCH=amd64 0.04s$ GIMME_OUTPUT="$(gimme 1.10.x | tee -a ${TRAVIS_HOME}/.bashrc)" &amp;&amp; eval "$GIMME_OUTPUT" go version go1.10.8 linux/amd64 $ export GOPATH=${TRAVIS_HOME}/gopath $ export PATH=${TRAVIS_HOME}/gopath/bin:$PATH $ mkdir -p ${TRAVIS_HOME}/gopath/src/github.com/fwhezfwhez/errorx $ tar -Pczf ${TRAVIS_TMPDIR}/src_archive.tar.gz -C ${TRAVIS_BUILD_DIR} . &amp;&amp; tar -Pxzf ${TRAVIS_TMPDIR}/src_archive.tar.gz -C ${TRAVIS_HOME}/gopath/src/github.com/fwhezfwhez/errorx $ export TRAVIS_BUILD_DIR=${TRAVIS_HOME}/gopath/src/github.com/fwhezfwhez/errorx $ cd ${TRAVIS_HOME}/gopath/src/github.com/fwhezfwhez/errorx $ gimme version v1.5.3 $ go version go version go1.10.8 linux/amd64 go.env $ go env GOARCH="amd64" GOBIN="" GOCACHE="/home/travis/.cache/go-build" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/travis/gopath" GORACE="" GOROOT="/home/travis/.gimme/versions/go1.10.8.linux.amd64" GOTMPDIR="" GOTOOLDIR="/home/travis/.gimme/versions/go1.10.8.linux.amd64/pkg/tool/linux_amd64" GCCGO="gccgo" CC="gcc" CXX="g++" CGO_ENABLED="1" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build294018080=/tmp/go-build -gno-record-gcc-switches" before_install.1 0.14s$ go get github.com/fwhezfwhez/errorx before_install.2 0.68s$ go get github.com/fwhezfwhez/go-queue Using Go 1.5 Vendoring, not checking for Godeps 3.13s$ go get -t -v ./... package errorX: unrecognized import path "errorX" (import path does not begin with hostname) The command "eval go get -t -v ./... " failed. Retrying, 2 of 3. package errorX: unrecognized import path "errorX" (import path does not begin with hostname) The command "eval go get -t -v ./... " failed. Retrying, 3 of 3. package errorX: unrecognized import path "errorX" (import path does not begin with hostname) The command "eval go get -t -v ./... " failed 3 times. The command "go get -t -v ./..." failed and exited with 1 during . Your build has been stopped. </code></pre> </div>

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

程序员请照顾好自己,周末病魔差点一套带走我。

程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

搜狗输入法也在挑战国人的智商!

故事总是一个接着一个到来...上周写完《鲁大师已经彻底沦为一款垃圾流氓软件!》这篇文章之后,鲁大师的市场工作人员就找到了我,希望把这篇文章删除掉。经过一番沟通我先把这篇文章从公号中删除了...

总结了 150 余个神奇网站,你不来瞅瞅吗?

原博客再更新,可能就没了,之后将持续更新本篇博客。

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

优雅的替换if-else语句

场景 日常开发,if-else语句写的不少吧??当逻辑分支非常多的时候,if-else套了一层又一层,虽然业务功能倒是实现了,但是看起来是真的很不优雅,尤其是对于我这种有强迫症的程序"猿",看到这么多if-else,脑袋瓜子就嗡嗡的,总想着解锁新姿势:干掉过多的if-else!!!本文将介绍三板斧手段: 优先判断条件,条件不满足的,逻辑及时中断返回; 采用策略模式+工厂模式; 结合注解,锦...

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

2020阿里全球数学大赛:3万名高手、4道题、2天2夜未交卷

阿里巴巴全球数学竞赛( Alibaba Global Mathematics Competition)由马云发起,由中国科学技术协会、阿里巴巴基金会、阿里巴巴达摩院共同举办。大赛不设报名门槛,全世界爱好数学的人都可参与,不论是否出身数学专业、是否投身数学研究。 2020年阿里巴巴达摩院邀请北京大学、剑桥大学、浙江大学等高校的顶尖数学教师组建了出题组。中科院院士、美国艺术与科学院院士、北京国际数学...

男生更看重女生的身材脸蛋,还是思想?

往往,我们看不进去大段大段的逻辑。深刻的哲理,往往短而精悍,一阵见血。问:产品经理挺漂亮的,有点心动,但不知道合不合得来。男生更看重女生的身材脸蛋,还是...

程序员为什么千万不要瞎努力?

本文作者用对比非常鲜明的两个开发团队的故事,讲解了敏捷开发之道 —— 如果你的团队缺乏统一标准的环境,那么即使勤劳努力,不仅会极其耗时而且成果甚微,使用...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试:第十六章:Java中级开发(16k)

HashMap底层实现原理,红黑树,B+树,B树的结构原理 Spring的AOP和IOC是什么?它们常见的使用场景有哪些?Spring事务,事务的属性,传播行为,数据库隔离级别 Spring和SpringMVC,MyBatis以及SpringBoot的注解分别有哪些?SpringMVC的工作原理,SpringBoot框架的优点,MyBatis框架的优点 SpringCould组件有哪些,他们...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

《Oracle Java SE编程自学与面试指南》最佳学习路线图2020年最新版(进大厂必备)

正确选择比瞎努力更重要!

《Oracle Java SE编程自学与面试指南》最佳学习路线图(2020最新版)

正确选择比瞎努力更重要!

都前后端分离了,咱就别做页面跳转了!统统 JSON 交互

文章目录1. 无状态登录1.1 什么是有状态1.2 什么是无状态1.3 如何实现无状态1.4 各自优缺点2. 登录交互2.1 前后端分离的数据交互2.2 登录成功2.3 登录失败3. 未认证处理方案4. 注销登录 这是本系列的第四篇,有小伙伴找不到之前文章,松哥给大家列一个索引出来: 挖一个大坑,Spring Security 开搞! 松哥手把手带你入门 Spring Security,别再问密...

字节跳动面试官竟然问了我JDBC?

轻松等回家通知

面试官:你连SSO都不懂,就别来面试了

大厂竟然要考我SSO,卧槽。

阿里面试官让我用Zk(Zookeeper)实现分布式锁

他可能没想到,我当场手写出来了

终于,月薪过5万了!

来看几个问题想不想月薪超过5万?想不想进入公司架构组?想不想成为项目组的负责人?想不想成为spring的高手,超越99%的对手?那么本文内容是你必须要掌握的。本文主要详解bean的生命...

自从喜欢上了B站这12个UP主,我越来越觉得自己是个废柴了!

不怕告诉你,我自从喜欢上了这12个UP主,哔哩哔哩成为了我手机上最耗电的软件,几乎每天都会看,可是吧,看的越多,我就越觉得自己是个废柴,唉,老天不公啊,不信你看看…… 间接性踌躇满志,持续性混吃等死,都是因为你们……但是,自己的学习力在慢慢变强,这是不容忽视的,推荐给你们! 都说B站是个宝,可是有人不会挖啊,没事,今天咱挖好的送你一箩筐,首先啊,我在B站上最喜欢看这个家伙的视频了,为啥 ,咱撇...

代码注释如此沙雕,会玩还是你们程序员!

某站后端代码被“开源”,同时刷遍全网的,还有代码里的那些神注释。 我们这才知道,原来程序员个个都是段子手;这么多年来,我们也走过了他们的无数套路… 首先,产品经理,是永远永远吐槽不完的!网友的评论也非常扎心,说看这些代码就像在阅读程序员的日记,每一页都写满了对产品经理的恨。 然后,也要发出直击灵魂的质问:你是尊贵的付费大会员吗? 这不禁让人想起之前某音乐app的穷逼Vip,果然,穷逼在哪里都是...

2020春招面试了10多家大厂,我把问烂了的数据库事务知识点总结了一下

2020年截止目前,我面试了阿里巴巴、腾讯、美团、拼多多、京东、快手等互联网大厂。我发现数据库事务在面试中出现的次数非常多。

爬虫(101)爬点重口味的

小弟最近在学校无聊的很哪,浏览网页突然看到一张图片,都快流鼻血。。。然后小弟冥思苦想,得干一点有趣的事情python 爬虫库安装https://s.taobao.com/api?_ks...

立即提问
相关内容推荐