HoneyMoose
  • 首页
  • Java
  • Jersey
  • Jira
  • Confluence
  • U.S.
    • USRealEstate
    • USVisaTrack
    • H1B
  • 项目和网站
    • CWIKI.US
    • OSSEZ 社区
    • WIKI.OSSEZ.COM
    • BUG.OSSEZ.COM
    • RSS.OSSEZ.COM
BLOG.OSSEZ.COM
A responsive blog theme focused om user reading experience
  1. Home
  2. Computer Science
  3. This article

Spring 项目运行提示错误 Not a managed type

2023年04月01日 241Browse 0Like 0Comments

在启动 Spring 项目的时候提示下面的错误信息。

 

2023-03-31_13-06-03

 

问题和原因

这个问题的原因是你的类没有在 Spring 管理的容器中注册。

主要原因是上面的包的路径不正确。

 

2023-03-31_13-07-48

 

修改上面的包的路径后重启服务就可以解决启动的时候对象没有注册的问题。

 

https://www.ossez.com/t/spring-not-a-managed-type/14368

Tags: None
Last updated:2023年04月01日

Kratos

stay absorbed stay excellent

Like
< Previous
Next >

Comments

Cancel reply

Newest Hotspots Random
Newest Hotspots Random
IntelliJ IDEA 2023.1 版本添加了包中类的列表功能 Jenkins 修改启动的端口 Spring 项目运行提示错误 Not a managed type Linux 查看 SELinux 的状态 WordPress 网站 Error Establishing a Database Connection(建立数据库连接时出错) Linux 开启或关闭 SELinux
Spring Boot 完成第一个程序后下一步应该做什么 Discourse 主题字数限制 Confluence 6 协同编辑问题解决 GitHub上某个非常好的开源工具,某天如果该工具的作者意外死掉了,那么这个工具的用户该怎么办 Confluence 6 禁用或者重新启用一个任务 Confluence 6 配置 简易信息聚合(RSS)
Categories
  • Algorithm(算法)
  • AMQP
  • Angular
  • CI
  • Compile And CI
  • Computer Science
  • Confluence
  • DataBase
  • Gradle
  • H1B
  • Hibernate
  • IDE
  • Java
  • Jersey
  • Jira
  • MariaDB
  • PrestaShop
  • Spring
  • Spring Batch
  • U.S.
  • USRealEstate
  • USVisaTrack
  • 我的小厨

COPYRIGHT © 2020 HoneyMoose. ALL RIGHTS RESERVED.

THEME CWIKIUS.CN MADE BY VTROIS