I created a sample Maven MVC project using my Spring tool suite but unable to deploy to tomcat.
The problem is when I right click the project and click "Run as" I don't see the "Run on server" option..
I tried changing the project to Dynamic web module after selecting the properties-project facets
but get the error, "Dyanmic web module 3.0 requires Java 1.6 or more"
How do I enable my project to run in Tomcat?
Have your Maven project compile for Java 1.6. Add this to your pom.xml
:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.