I need to change the default Eclipse WTP "Web Resources" dynamic folder. Currently it points to WebContent, and I need to point to src\main\webapp.
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
Or you may even do a simple rename of WebContent directory. Eclipse will update the above mention settings files
I prefer the following solution, as the configuration is then saved in the
.project
file and also all files are kept visible in the Eclipse Project Explorer.Create a Linked Folder called
WebContent
pointing to/src/main/webapp
:Right click project > New > Folder. Folder name:
WebContent
. Advanced > Link to alternate location (Linked Folder):PROJECT_LOC/src/main/webapp
.In my case the problem was that the jsp located in resources/templates were not found
The solution has been to change
by the following
That is, modifying the file
I found the solution: Under .settings folder in your project's folder, there is a file named "org.eclipse.wst.common.component", inside it change the line
<wb-resource deploy-path="/" source-path="/WebContent"/>
with<wb-resource deploy-path="/" source-path="/src/main/webapp"/>
.That's all!
Give Preference to eclipse GUI!
if don't appear to you see this
Unable to find Deployment assembly Eclipse Juno