mikicomo
V2EX  ›  问与答

IDEA 报 could not autowire 的问题

  •  3
     
  •   mikicomo · May 17, 2017 · 2183 views
    This topic created in 3292 days ago, the information mentioned may be changed or developed.

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

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

    Facets 下删掉 Spring

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

    Supplement 1  ·  May 17, 2017
    [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 replies    2017-05-17 22:44:05 +08:00
    qinxi
        1
    qinxi  
       May 17, 2017 via Android   ❤️ 1
    dao 上加注解
    Sharuru
        2
    Sharuru  
       May 17, 2017   ❤️ 1
    确认 Project Structure 里确定加入了所有 Spring Config Class,对应的 Class 上均有注解后,尝试重新导入 project。
    mikicomo
        3
    mikicomo  
    OP
       May 17, 2017
    @qinxi 感谢大兄弟!我在 dao 上加了 @Repository,就 ok 了

    @Sharuru 嗯,已解决。
    mikicomo
        4
    mikicomo  
    OP
       May 17, 2017
    @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
       May 17, 2017
    @qinxi 这个我看到过了,但是我设置以后,在 idea 里面运行的时候,还是这样子,貌似没有生效额,是不是 idea 有自己的设置?
    mikicomo
        7
    mikicomo  
    OP
       May 17, 2017
    @qinxi 是我自己的问题,搞好了= =
    mikicomo
        8
    mikicomo  
    OP
       May 17, 2017
    @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 竟然还去这里找,是怎么回事呢?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   921 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 20:38 · PVG 04:38 · LAX 13:38 · JFK 16:38
    ♥ Do have faith in what you're doing.