[我试图创建一个Spring jdbc项目,但是当我尝试运行它时遇到了这个异常

问题描述 投票:0回答:1
javax.servlet.ServletException: Servlet.init() for servlet [SpringDispatcher] threw exception
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
    org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:651)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
    org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:407)
    org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
    org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:754)

例外:

org.apache.tomcat.util.net.NioEndpoint $ SocketProcessor.doRun(NioEndpoint.java:1376)org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)java.base / java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)java.base / java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:641)org.apache.tomcat.util.threads.TaskThread $ WrappingRunnable.run(TaskThread.java:61)java.base / java.lang.Thread.run(Thread.java:844)

spring jdbc
1个回答
0
投票
我阅读了我的控制台,发现失败的主要原因是我的Home.controller中@RequestMapping中的模棱两可,所以我更新了注释,然后我的主页开始加载就很好了
© www.soinside.com 2019 - 2024. All rights reserved.