V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
mikicomo
V2EX  ›  问与答

IDEA 报 could not autowire 的问题

  •  3
     
  •   mikicomo · 2017-05-17 17:29:48 +08:00 · 1810 次点击
    这是一个创建于 2600 天前的主题,其中的信息可能已经有所发展或是发生改变。

    情况和: https://www.oschina.net/question/202626_181237 是一样的

    现在暂时的解决方法也是根据里面的高票回答来做的

    Facets 下删掉 Spring

    不过这样的话自动提示就不足了,不知道 V 友们有没有遇到这样的问题?怎么处理更优雅一点?

    第 1 条附言  ·  2017-05-17 18:01:37 +08:00
    [RMI TCP Connection(5)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars 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.
    
    

    这个问题也顺便请教下 V 友大大们,虽然不影响程序运行,但是强迫症还是想解决掉他,网上也搜索了很多,但一直没有什么好的方案。

    8 条回复    2017-05-17 22:44:05 +08:00
    qinxi
        1
    qinxi  
       2017-05-17 17:38:05 +08:00 via Android   ❤️ 1
    dao 上加注解
    Sharuru
        2
    Sharuru  
       2017-05-17 17:52:31 +08:00   ❤️ 1
    确认 Project Structure 里确定加入了所有 Spring Config Class,对应的 Class 上均有注解后,尝试重新导入 project。
    mikicomo
        3
    mikicomo  
    OP
       2017-05-17 17:54:40 +08:00
    @qinxi 感谢大兄弟!我在 dao 上加了 @Repository,就 ok 了

    @Sharuru 嗯,已解决。
    mikicomo
        4
    mikicomo  
    OP
       2017-05-17 17:56:31 +08:00
    @qinxi
    @Sharuru
    [RMI TCP Connection(5)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars 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.

    这个问题也顺便请教下 V 友大大们,虽然不影响程序运行,但是强迫症还是想解决掉他,网上也搜索了很多,但一直没有什么好的方案。
    mikicomo
        6
    mikicomo  
    OP
       2017-05-17 21:31:14 +08:00
    @qinxi 这个我看到过了,但是我设置以后,在 idea 里面运行的时候,还是这样子,貌似没有生效额,是不是 idea 有自己的设置?
    mikicomo
        7
    mikicomo  
    OP
       2017-05-17 21:53:07 +08:00
    @qinxi 是我自己的问题,搞好了= =
    mikicomo
        8
    mikicomo  
    OP
       2017-05-17 22:44:05 +08:00
    @qinxi
    No TLD files were found in resource path [/WEB-INF/jsp/].
    No TLD files were found in resource path [/WEB-INF/].
    本来我的确有 jsp 这个目录,可是现在这个目录已经被我改名叫做 view 了,可是 tomcat 竟然还去这里找,是怎么回事呢?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2416 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 03:40 · PVG 11:40 · LAX 20:40 · JFK 23:40
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.