【发布时间】:2021-09-27 00:08:44
【问题描述】:
我是 Spring Boot 新手,我正在尝试使用主仪表板成为管理员面孔 Spring Boot Master。 我从 GitHub 下载项目,https://github.com/miltonbo/adminfaces-spring-boot 当我运行该项目时,我得到了这个错误:“应用程序启动失败
说明:
com.github.adminfaces.template.session.AdminFilter 中的字段 adminSession 需要一个无法找到的“com.github.adminfaces.template.session.AdminSession”类型的 bean。
注入点有以下注解: -@org.springframework.beans.factory.annotation.Autowired(required=true) - @org.springframework.beans.factory.annotation.Qualifier(value="loginMB")
找到以下候选但无法注入: - 用户定义的bean - 用户自定义bean
行动:
考虑重新访问上面的条目或在您的配置中定义一个 'com.github.adminfaces.template.session.AdminSession' 类型的 bean。” 我只是下载它并在eclipse上运行它。 我该如何纠正? 再加上resource下有admin.properties,但是这个项目没有application.properties,是不是应该做resource下的application.properties? 如果有一个可以轻松工作的 Spring Boot Admin Face Master,请转发给我一个链接? 谢谢
【问题讨论】:
标签: spring spring-boot adminfaces