Prerequisites
- Java
- Spring STS
- Maven
- Tomcat
------------------------------------------------------
What are we going to build?
App Features
- Allow for entering minutes exercising
- Show total minutes
- Set goal for the day
- Notify when goal is reached
----------------------------------------------------------
Springsource Downloads
Getting Spring MVC
Spring Framework
- http://www.springsource.org/spring-framework
- Can't download just the web resources
- 21 different jars that it downloads
---------------------------------------------------------------------
Maven Overview
- Using Maven we only need three dependencies
- Dependencies:
spring-webmvc
servlet-api
jstl
-----------------------------------------------------
Demo: Maven Configuration
New -> Maven Project
enter archetype selection
select a sample Maven Webapp project
com.pluralsight.FitnessTracker
pom.xml
spring-webmvc
servlet-api
jstl
save , auto download
-------------------------------------------------------------------------------
Spring MVC Configuration
- Configure web.xml
- Configure servlet-config.xml
- Add Controller
- Add View
---------------------------------------------------------------
Tomcat
https://tomcat.apache.org/download-70.cgi
New -> Server
---------------------------------------------------------------
Programming Standards
https://blog.csdn.net/u012596785/article/details/79905680