If use 1.5.3 version does not show red font error, but cannot be used. The vm template file, as follows: to establish the Controller
@ Controller
Public class IndexController {
.
.
.
@ RequestMapping (value={} "/vm" https://bbs.csdn.net/topics/
Public String news () {
Return "news." vm;//have established news. Vm file
}
}
Start tomcat, run in the browser address bar type: localhost: 8080/vm display 404 error, is this why?
CodePudding user response:
Do I know how to solve? Encounter with cannot use. Vm template of this problem,,,CodePudding user response:
The landlord to change a high versionhttps://mvnrepository.com/artifact/org.apache.velocity/velocity
& lt; ! - https://mvnrepository.com/artifact/org.apache.velocity/velocity - & gt;Org. Apache. Velocity Velocity 1.7 & lt;/version>
CodePudding user response:
Do I know how to solve? Encounter with cannot use. Vm template, this problem,CodePudding user response:
The building Lord, please the problem solved? How to deal withCodePudding user response:
Remove the return news. At the end of the vm. The vmCodePudding user response:
. Remove vm,., vm. Vm is removed,