问题遇到的现象和发生背景
springboot项目
问题相关代码,请勿粘贴截图
2022-09-02 16:51:34,932 INFO org.springframework.boot.StartupInfoLogger 50 logStarting - Starting TmallSpringBootApplication on DESKTOP-SQ62F1J with PID 12460 (E:\Java\ideaworkspace\Tmall_demo-master\target\classes started by 16927 in E:\Java\ideaworkspace\Tmall_demo-master)
2022-09-02 16:51:34,937 INFO org.springframework.boot.SpringApplication 646 logStartupProfileInfo - No active profile set, falling back to default profiles: default
2022-09-02 16:51:36,053 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker 330 postProcessAfterInitialization - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$82108f64] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-09-02 16:51:36,320 INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer 90 initialize - Tomcat initialized with port(s): 8088 (http)
2022-09-02 16:51:36,345 INFO org.apache.juli.logging.DirectJDKLog 173 log - Initializing ProtocolHandler ["http-nio-8088"]
2022-09-02 16:51:36,356 INFO org.apache.juli.logging.DirectJDKLog 173 log - Starting service [Tomcat]
2022-09-02 16:51:36,357 INFO org.apache.juli.logging.DirectJDKLog 173 log - Starting Servlet engine: [Apache Tomcat/9.0.21]
2022-09-02 16:51:36,614 INFO org.apache.juli.logging.DirectJDKLog 173 log - 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.
2022-09-02 16:51:36,620 INFO org.apache.juli.logging.DirectJDKLog 173 log - Initializing Spring embedded WebApplicationContext
2022-09-02 16:51:36,620 INFO org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext 283 prepareWebApplicationContext - Root WebApplicationContext: initialization completed in 1638 ms
2022-09-02 16:51:37,605 INFO org.springframework.scheduling.concurrent.ExecutorConfigurationSupport 171 initialize - Initializing ExecutorService 'applicationTaskExecutor'
2022-09-02 16:51:38,149 INFO org.springframework.boot.actuate.endpoint.web.EndpointLinksResolver 58 <init> - Exposing 2 endpoint(s) beneath base path '/actuator'
2022-09-02 16:51:38,193 INFO org.apache.juli.logging.DirectJDKLog 173 log - Starting ProtocolHandler ["http-nio-8088"]
2022-09-02 16:51:38,223 INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer 202 start - Tomcat started on port(s): 8088 (http) with context path '/tmall'
2022-09-02 16:51:38,226 INFO org.springframework.boot.StartupInfoLogger 59 logStarted - Started TmallSpringBootApplication in 3.551 seconds (JVM running for 5.298)
2022-09-02 16:51:39,370 INFO com.zaxxer.hikari.HikariDataSource 110 getConnection - HikariPool-1 - Starting...
2022-09-02 16:51:39,370 INFO org.apache.juli.logging.DirectJDKLog 173 log - Initializing Spring DispatcherServlet 'dispatcherServlet'
2022-09-02 16:51:39,371 INFO org.springframework.web.servlet.FrameworkServlet 524 initServletBean - Initializing Servlet 'dispatcherServlet'
2022-09-02 16:51:39,379 INFO org.springframework.web.servlet.FrameworkServlet 546 initServletBean - Completed initialization in 8 ms
2022-09-02 16:51:39,538 INFO com.zaxxer.hikari.HikariDataSource 123 getConnection - HikariPool-1 - Start completed.
运行结果及报错内容
运行正常,数据库连接正常。
后台访问;页面正常,登录报错
前台直接报错
我的解答思路和尝试过的方法
clean 之后重装无法解决问题
我想要达到的结果
能够正常访问