NutzCN Logo
问答 hello world起不来了,尴尬
发布于 2160天前 作者 码农 1531 次浏览 复制 上一个帖子 下一个帖子
标签:
package com.ws.module;

import org.nutz.mvc.annotation.At;
import org.nutz.mvc.annotation.Ok;

public class MainModule {
    @At("/hello")
    @Ok("jsp:jsp.hello")
    public void hello(){
        System.err.println("hello world.");
    }
}

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
         version="3.1">
  <display-name>HelloExcel</display-name>
  <filter>
    <filter-name>nutz</filter-name>
    <filter-class>org.nutz.mvc.NutFilter</filter-class>
    <init-param>
      <param-name>modules</param-name>
      <param-value>com.ws.module.MainModule</param-value>
    </init-param>
  </filter>

  <filter-mapping>
    <filter-name>nutz</filter-name>
    <url-pattern>/*</url-pattern>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>FORWARD</dispatcher>
  </filter-mapping>
</web-app>
<?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.ws</groupId>
  <artifactId>HelloExcel</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>war</packaging>

  <name>HelloExcel 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>
    <maven.compiler.source>1.7</maven.compiler.source>
    <maven.compiler.target>1.7</maven.compiler.target>
  </properties>

  <dependencies>

    <dependency>
      <groupId>org.nutz</groupId>
      <artifactId>nutz</artifactId>
      <version>1.r.60</version>
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
      <version>2.5</version>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.11</version>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-resources-plugin</artifactId>
        <version>3.0.2</version>
        <configuration>
          <encoding>UTF-8</encoding>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <version>3.0.0</version>
        <configuration>
          <descriptorRefs>
            <descriptorRef>jar-with-dependencies</descriptorRef>
          </descriptorRefs>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.10.3</version>
        <configuration>
          <additionalparam>-Xdoclint:none</additionalparam>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <version>3.0.2</version>
        <configuration>
          <archive>
            <manifest>
              <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
            </manifest>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.6.1</version>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
          <encoding>UTF-8</encoding>
          <compilerArgs>
            <arg>-parameters</arg>
          </compilerArgs>
          <useIncrementalCompilation>false</useIncrementalCompilation>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.19.1</version>
        <configuration>
          <forkMode>once</forkMode>
          <argLine>-Dfile.encoding=UTF-8</argLine>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>

6 回复

报什么? 贴一下日志

F:\DevSoft\apache-tomcat-8.0.53\bin\catalina.bat run
[2018-12-17 10:36:45,376] Artifact HelloExcel:war exploded: Waiting for server connection to start artifact deployment...
Using CATALINA_BASE:   "F:\DevSoftIntelliJ IDEA.IntelliJIdea2018.3system\tomcat\Unnamed_HelloExcel"
Using CATALINA_HOME:   "F:\DevSoft\apache-tomcat-8.0.53"
Using CATALINA_TMPDIR: "F:\DevSoft\apache-tomcat-8.0.53\temp"
Using JRE_HOME:        "D:\Dev\jdk1.8-191"
Using CLASSPATH:       "F:\DevSoft\apache-tomcat-8.0.53\bin\bootstrap.jar;F:\DevSoft\apache-tomcat-8.0.53\bin\tomcat-juli.jar"
Connected to the target VM, address: '127.0.0.1:50679', transport: 'socket'
17-Dec-2018 10:36:45.926 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:        Apache Tomcat/8.0.53
17-Dec-2018 10:36:45.928 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Jun 29 2018 14:42:45 UTC
17-Dec-2018 10:36:45.928 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server number:         8.0.53.0
17-Dec-2018 10:36:45.928 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Windows 10
17-Dec-2018 10:36:45.928 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            10.0
17-Dec-2018 10:36:45.928 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
17-Dec-2018 10:36:45.928 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             D:\Dev\jdk1.8-191\jre
17-Dec-2018 10:36:45.928 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.8.0_191-b12
17-Dec-2018 10:36:45.928 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
17-Dec-2018 10:36:45.928 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         F:\DevSoftIntelliJ IDEA.IntelliJIdea2018.3system\tomcat\Unnamed_HelloExcel
17-Dec-2018 10:36:45.928 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         F:\DevSoft\apache-tomcat-8.0.53
17-Dec-2018 10:36:45.928 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=F:\DevSoftIntelliJ IDEA.IntelliJIdea2018.3system\tomcat\Unnamed_HelloExcel\conf\logging.properties
17-Dec-2018 10:36:45.928 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
17-Dec-2018 10:36:45.928 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:50679,suspend=y,server=n
17-Dec-2018 10:36:45.929 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -javaagent:C:\Users\Administrator\AppData\Local\Temp\captureAgent5jars\debugger-agent.jar
17-Dec-2018 10:36:45.929 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote=
17-Dec-2018 10:36:45.929 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099
17-Dec-2018 10:36:45.929 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false
17-Dec-2018 10:36:45.929 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
17-Dec-2018 10:36:45.930 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1
17-Dec-2018 10:36:45.930 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
17-Dec-2018 10:36:45.930 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
17-Dec-2018 10:36:45.930 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
17-Dec-2018 10:36:45.930 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=F:\DevSoftIntelliJ IDEA.IntelliJIdea2018.3system\tomcat\Unnamed_HelloExcel
17-Dec-2018 10:36:45.930 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=F:\DevSoft\apache-tomcat-8.0.53
17-Dec-2018 10:36:45.930 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=F:\DevSoft\apache-tomcat-8.0.53\temp
17-Dec-2018 10:36:45.930 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library 1.2.17 using APR version 1.6.3.
17-Dec-2018 10:36:45.932 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
17-Dec-2018 10:36:46.792 信息 [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized (OpenSSL 1.0.2o  27 Mar 2018)
17-Dec-2018 10:36:46.862 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-apr-8080"]
17-Dec-2018 10:36:46.868 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-apr-8009"]
17-Dec-2018 10:36:46.868 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1116 ms
17-Dec-2018 10:36:46.885 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
17-Dec-2018 10:36:46.885 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.53
17-Dec-2018 10:36:46.891 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-apr-8080"]
17-Dec-2018 10:36:46.901 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-apr-8009"]
17-Dec-2018 10:36:46.903 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 34 ms
Connected to server
[2018-12-17 10:36:46,944] Artifact HelloExcel:war exploded: Artifact is being deployed, please wait...
17-Dec-2018 10:36:47.344 信息 [RMI TCP Connection(3)-127.0.0.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.
2018-12-17 10:36:47.380 INFO [RMI TCP Connection(3)-127.0.0.1] Select SystemLog as Nutz.Log implement
2018-12-17 10:36:47.385 INFO [RMI TCP Connection(3)-127.0.0.1] NutFilter[nutz] starting ...
2018-12-17 10:36:47.428 DEBUG [RMI TCP Connection(3)-127.0.0.1] Locations for Scans:
[Dir[path=F:\DevSoft\apache-tomcat-8.0.53\bin], Jar[path=G:\codeResporty\HelloExcel\target\HelloExcel-1.0-SNAPSHOT\WEB-INF\lib\nutz-1.r.60.jar], Jar[path=F:\DevSoft\apache-tomcat-8.0.53\bin\bootstrap.jar], Jar[path=F:\DevSoft\apache-tomcat-8.0.53\bin\tomcat-juli.jar], Jar[path=C:\Users\Administrator\AppData\Local\Temp\captureAgent5jars\debugger-agent.jar]]
2018-12-17 10:36:47.457 DEBUG [RMI TCP Connection(3)-127.0.0.1] Locations for Scans:
{F:\DevSoft\apache-tomcat-8.0.53\bin=Dir[path=F:\DevSoft\apache-tomcat-8.0.53\bin], G:\codeResporty\HelloExcel\target\HelloExcel-1.0-SNAPSHOT\WEB-INF\lib\nutz-1.r.60.jar=Jar[path=G:\codeResporty\HelloExcel\target\HelloExcel-1.0-SNAPSHOT\WEB-INF\lib\nutz-1.r.60.jar], F:\DevSoft\apache-tomcat-8.0.53\bin\bootstrap.jar=Jar[path=F:\DevSoft\apache-tomcat-8.0.53\bin\bootstrap.jar], F:\DevSoft\apache-tomcat-8.0.53\bin\tomcat-juli.jar=Jar[path=F:\DevSoft\apache-tomcat-8.0.53\bin\tomcat-juli.jar], C:\Users\Administrator\AppData\Local\Temp\captureAgent5jars\debugger-agent.jar=Jar[path=C:\Users\Administrator\AppData\Local\Temp\captureAgent5jars\debugger-agent.jar], G:\codeResporty\HelloExcel\target\HelloExcel-1.0-SNAPSHOT\WEB-INF\classes=Dir[path=G:\codeResporty\HelloExcel\target\HelloExcel-1.0-SNAPSHOT\WEB-INF\classes], G:\codeResporty\HelloExcel\target\HelloExcel-1.0-SNAPSHOT\WEB-INF\lib\servlet-api-2.5.jar=Jar[path=G:\codeResporty\HelloExcel\target\HelloExcel-1.0-SNAPSHOT\WEB-INF\lib\servlet-api-2.5.jar]}
2018-12-17 10:36:47.524 DEBUG [RMI TCP Connection(3)-127.0.0.1] Using 95 castor for Castors
2018-12-17 10:36:47.529 DEBUG [RMI TCP Connection(3)-127.0.0.1] Loading by class org.nutz.mvc.impl.NutLoading
2018-12-17 10:36:47.531 INFO [RMI TCP Connection(3)-127.0.0.1] Nutz Version : 1.r.60 
2018-12-17 10:36:47.531 INFO [RMI TCP Connection(3)-127.0.0.1] Nutz.Mvc[nutz] is initializing ...
2018-12-17 10:36:47.531 DEBUG [RMI TCP Connection(3)-127.0.0.1] Web Container Information:
2018-12-17 10:36:47.532 DEBUG [RMI TCP Connection(3)-127.0.0.1]  - Default Charset : GBK
2018-12-17 10:36:47.533 DEBUG [RMI TCP Connection(3)-127.0.0.1]  - Current . path  : F:\DevSoft\apache-tomcat-8.0.53\bin\.
2018-12-17 10:36:47.533 DEBUG [RMI TCP Connection(3)-127.0.0.1]  - Java Version    : 1.8.0_191
2018-12-17 10:36:47.533 DEBUG [RMI TCP Connection(3)-127.0.0.1]  - File separator  : \
2018-12-17 10:36:47.533 DEBUG [RMI TCP Connection(3)-127.0.0.1]  - Timezone        : Asia/Shanghai
2018-12-17 10:36:47.533 DEBUG [RMI TCP Connection(3)-127.0.0.1]  - OS              : Windows 10 amd64
2018-12-17 10:36:47.533 DEBUG [RMI TCP Connection(3)-127.0.0.1]  - ServerInfo      : Apache Tomcat/8.0.53
2018-12-17 10:36:47.533 DEBUG [RMI TCP Connection(3)-127.0.0.1]  - Servlet API     : 3.1
2018-12-17 10:36:47.534 DEBUG [RMI TCP Connection(3)-127.0.0.1]  - ContextPath     : /HelloExcel_war_exploded
2018-12-17 10:36:47.534 DEBUG [RMI TCP Connection(3)-127.0.0.1]  - context.tempdir : F:\DevSoftIntelliJ IDEA.IntelliJIdea2018.3system\tomcat\Unnamed_HelloExcel\work\Catalina\localhost\HelloExcel_war_exploded
2018-12-17 10:36:47.534 DEBUG [RMI TCP Connection(3)-127.0.0.1]  - MainModule      : com.ws.module.MainModule
2018-12-17 10:36:47.536 DEBUG [RMI TCP Connection(3)-127.0.0.1] >> app.root = G:/codeResporty/HelloExcel/target/HelloExcel-1.0-SNAPSHOT
2018-12-17 10:36:47.538 INFO [RMI TCP Connection(3)-127.0.0.1] !!!Your application without @IocBy supporting
2018-12-17 10:36:47.540 INFO [RMI TCP Connection(3)-127.0.0.1] Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
2018-12-17 10:36:47.543 DEBUG [RMI TCP Connection(3)-127.0.0.1] @Views(DefaultViewMaker.class)
2018-12-17 10:36:47.552 DEBUG [RMI TCP Connection(3)-127.0.0.1] @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
2018-12-17 10:36:47.561 DEBUG [RMI TCP Connection(3)-127.0.0.1] module class location 'file:/G:/codeResporty/HelloExcel/target/HelloExcel-1.0-SNAPSHOT/WEB-INF/classes/'
2018-12-17 10:36:47.561 DEBUG [RMI TCP Connection(3)-127.0.0.1]  > scan 'com.ws.module'
2018-12-17 10:36:47.565 DEBUG [RMI TCP Connection(3)-127.0.0.1] Found 1 resource by src( com/ws/module/ ) , regex( ^.+[.]class$ )
2018-12-17 10:36:47.567 DEBUG [RMI TCP Connection(3)-127.0.0.1]    >> add 'com.ws.module.MainModule'
2018-12-17 10:36:47.574 INFO [RMI TCP Connection(3)-127.0.0.1] Create Module obj without Ioc --> class com.ws.module.MainModule
2018-12-17 10:36:47.575 INFO [RMI TCP Connection(3)-127.0.0.1] Optional processor class not found, disabled : org.nutz.integration.shiro.NutShiroProcessor
2018-12-17 10:36:47.580 INFO [RMI TCP Connection(3)-127.0.0.1] Optional processor class not found, disabled : org.nutz.plugins.validation.ValidationProcessor
2018-12-17 10:36:47.591 DEBUG [RMI TCP Connection(3)-127.0.0.1]    '/hello'                    >> (MainModule.java:10).hello            : void       | @Ok(jsp:jsp.hello) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-12-17 10:36:47.592 INFO [RMI TCP Connection(3)-127.0.0.1] Found 1 module methods
2018-12-17 10:36:47.592 DEBUG [RMI TCP Connection(3)-127.0.0.1] @Localization not define
2018-12-17 10:36:47.594 INFO [RMI TCP Connection(3)-127.0.0.1] Nutz.Mvc[nutz] is up in 59ms
[2018-12-17 10:36:47,607] Artifact HelloExcel:war exploded: Artifact is deployed successfully
[2018-12-17 10:36:47,608] Artifact HelloExcel:war exploded: Deploy took 664 milliseconds
17-Dec-2018 10:36:56.895 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory F:\DevSoft\apache-tomcat-8.0.53\webapps\docs
17-Dec-2018 10:36:56.931 信息 [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.
17-Dec-2018 10:36:56.934 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory F:\DevSoft\apache-tomcat-8.0.53\webapps\docs has finished in 38 ms
17-Dec-2018 10:36:56.934 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory F:\DevSoft\apache-tomcat-8.0.53\webapps\examples
17-Dec-2018 10:36:57.096 信息 [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.
17-Dec-2018 10:36:57.128 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory F:\DevSoft\apache-tomcat-8.0.53\webapps\examples has finished in 194 ms
17-Dec-2018 10:36:57.128 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory F:\DevSoft\apache-tomcat-8.0.53\webapps\host-manager
17-Dec-2018 10:36:57.168 信息 [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.
17-Dec-2018 10:36:57.170 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory F:\DevSoft\apache-tomcat-8.0.53\webapps\host-manager has finished in 42 ms
17-Dec-2018 10:36:57.170 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory F:\DevSoft\apache-tomcat-8.0.53\webapps\manager
17-Dec-2018 10:36:57.200 信息 [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.
17-Dec-2018 10:36:57.201 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory F:\DevSoft\apache-tomcat-8.0.53\webapps\manager has finished in 31 ms
17-Dec-2018 10:36:57.201 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory F:\DevSoft\apache-tomcat-8.0.53\webapps\ROOT
17-Dec-2018 10:36:57.227 信息 [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.
17-Dec-2018 10:36:57.228 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory F:\DevSoft\apache-tomcat-8.0.53\webapps\ROOT has finished in 27 ms

这个默认编码我在idea中把所有的编码都设置成UTF-8了。。。。最后系统输出的时候还是GBK,

Default Charset : GBK

你用tomcat跑,所以需要tomcat加jvm参数才行

ContextPath     : /HelloExcel_war_exploded

访问的地址是 http://127.0.0.1:8080/HelloExcel_war_exploded

@wendal 这个ContextPath能修改吗?
我在配置tomcat 中url的时候只填了
http://localhost:8080/

tomcat的配置里面改,跟nutz没什么关系-_-

添加回复
请先登陆
回到顶部