Home > Back-end >  The idea of running maven tomcat7: click on the top right corner after the run icon to open the HTML
The idea of running maven tomcat7: click on the top right corner after the run icon to open the HTML

Time:09-17

Of new self-study, a case today following tutorials do practice, found the maven starts, the project registration page can't get captcha images

This is to use maven tomca7: run run, the result of the verification code for less than originally thought it was the servlet write wrong, but directly with Tomcat startup can get different verification code and the address bar, so I tried to run the maven Tomcat7 behind: after the run in the address bar directly enter localhost/travel/register. The HTML found also can obtain the verification code, but in the idea of direct click on the browser icon in the top right corner will be like the above access to a different address for verification code, don't know why, may be maven's problem, but don't know how to set up, baidu also not suitable as a result,

Pom. In XML maven and Tomcat as follows:



Org, apache maven. Plugins
Maven - compiler - plugin

1.8 & lt;/source>
1.8 & lt;/target>
Utf-8 & lt;/encoding>



Org, apache tomcat. Maven
Tomcat7 maven - plugin
2.1 & lt;/version>

80 & lt;/port>
/travel





His blind whole day what also have no result, was unable to help you, save the children, what the reason, don't start using maven project will be manually entered address access cannot jump code with the idea?
  • Related