java - Directory structure of tomcat project in eclipse -


i see few different formats of directories in eclipse tomcat in different examples. there "preferred" structure 1 should follow. default eclipse created tomcat project follows:

/projectname ../src ../bin ../web-inf ../../lib ../../src ../../classes 
  • where javascript,css files place?
  • what top level src for?
  • why change or set web application root? know these directories moved around. need set different configure params.

where javascript,css files place? src/main/webapp/css src/main/webapp/js

what top level src for? yes, src/main/java src/main/resources src/test/java src/test/resources

i suggest use maven project type. in eclipse: new > project... > maven > maven project


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -