首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >由: java.lang.IllegalArgumentException:找到多个名称为[admin_theme_fragment]的片段

由: java.lang.IllegalArgumentException:找到多个名称为[admin_theme_fragment]的片段
EN

Stack Overflow用户
提问于 2021-12-06 10:33:22
回答 1查看 500关注 0票数 1

我被困在如何纠正这个错误上了。这可能是一个重复的问题,但由于不使用解决方案,我不知道如何在联接面和spring引导中配置它。这里是我的pom,下面是我的application.properties。

代码语言:javascript
复制
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运行时,它工作得很好。

EN

回答 1

Stack Overflow用户

发布于 2021-12-06 12:59:38

如果使用IDE,请在文件中搜索单词admin_theme_fragment。您应该在代码中使用它一次,而不是多次使用它。

按此重新命名。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70244098

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档