Home  >  Q&A  >  body text

spring-mvc - How to recompile the eclipse java maven web project, not the clean one. Please come and see the picture for details. Thank you all.

The project spring-mvc checked out from SVN could not scan the annotations in my controller, causing the page request to not find the mapping
The code was normal after checking for an afternoon, but I accidentally discovered it while doing this

When you save after modifying the JDK, it will prompt you whether to recompile? probably. After compilation, my spring-mvc can find the corresponding contorler when accessing the request. So the question is, why does it not have this effect when I use clean? It is a bit troublesome to modify the JDK to change it in the past and change it back. Is there any direct way? method.

Thank you everyone. Sorry for the trouble! ! !

伊谢尔伦伊谢尔伦2711 days ago868

reply all(1)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-17 10:03:46

    clean is to clean the generated class files. If you don’t compile the target and there is no corresponding jar file, how can you do it? The running access will naturally be 404.

    reply
    0
  • Cancelreply