Deploy the project to local Tomcat under idea to run and validate the consolidation results
(1). Click the drop-down button as shown, pop-up edit configurations ... After clicking on the item.
(2). Click the "+" sign in the red box to select the Tomcat server->local after jumping out of the following screen
(3). The following interface appears, modifying the name of the custom startup item, configuring the local tomcat
(4). Select the project to run
(5). Specify the ContextPath for the project to run
(6). Click the Start button to start the project
(7). Enter the URL of the controller in the browser and observe the output
Print out the data we have stored in the data to show that the framework is perfectly successful! To this spring, SPRINGMVC, MyBatis integration and testing all completed, like or help you, please praise!
Note: The GitHub address for the project is:https://github.com/hafizzhang/SSM.git
Spring+springmvc+mybatis Framework Integration Building Tutorial four (project deployment and testing)