java - Unable to work with Struts2 and REST Plugin -
i've been trying work rest plugin of struts2 unable make work simple project , following tutorials i'm unable make work.
i literally feel tried nothing worked.
can't post code , have no clue why project not working, here project attached (don't worry, it's base project 1 class only, not thousands of lines debug).
https://www.dropbox.com/s/2wulbd7xmk5nwfl/basic_struts2_mvn.zip
so problem when request /user, 404 :/
because have no controllers.
your controllers need in src/main/java
, not src/main/resources
:
. ├── pom.xml └── src └── main ├── resources │ ├── example │ │ └── userscontroller.java <-- not resource, java source. │ └── struts.xml └── webapp ├── web-inf │ └── web.xml └── index.jsp
there may other issues well.
note don't need explicitly include convention plugin in pom.
Comments
Post a Comment