1

我被困在如何解决这个错误上。这可能是一个重复的问题,但提供的解决方案我不知道如何在连接面和弹簧启动中配置它,因为我没有使用 web.xml。是我的 pom XML,下面是我的 application.properties

server.servlet.context-path=/School
joinfaces.primefaces.theme=admin
joinfaces.jsf.project-stage=development
joinfaces.primefaces.csp=true
joinfaces.primefaces.font-awesome=true
server.servlet.session.cookie.http-only=true
server.servlet.session.cookie.secure=true
joinfaces.myfaces.clear-input-when-submitted-value-is-null-or-empty=true
spring.datasource.url= jdbc:postgresql://localhost:5432/mydb
spring.datasource.username=postgres
spring.datasource.password=password
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
spring.datasource.driver-class-name=org.postgresql.Driver
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=false
server.error.whitelabel.enabled=false
spring.mvc.throw-exception-if-no-handler-found=true
server.max-http-header-size=10MB
server.port=8443
security.require-ssl=true

这是我尝试部署到外部 tomcat 时出现的错误的完整堆栈跟踪。当我从 IDE 运行时,它工作正常。

在此处输入图像描述

4

1 回答 1

0

如果您使用 IDE,请在文件中搜索单词admin_theme_fragment. 您应该在代码中使用一次,但您已经使用了不止一次。

相应地重命名它。

于 2021-12-06T12:59:38.680 回答