Java Spring FrameWork: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
 (Created page with "==Notes==  * In the web.xml specify the location of the Spring Configuration File <pre>     <context-param>         <param-name>contextConfigLocation</param-name>         <par...")  | 
				 (→Notes)  | 
				||
| Line 1: | Line 1: | ||
==Notes==  | ==Notes==  | ||
===Rest Architecture===  | |||
'''REST (REpresentational State Transfer)'''  | |||
New naming :  | |||
'''HATEOAS (Hypermedia as the Engine of Application State)'''  | |||
# Client-serveur: Data remain on serveur and client is a separated entity  | |||
# No state: Each request provide to the server all the necessary information to provide the service  | |||
# Cache: The information sent by the server must contain, creation date, expiration date.  | |||
# Uniform Interface:  | |||
## Each resources has a unic Id;  | |||
## Resources have representation defined;  | |||
## Auto descriptive message: The content and how to read the message; (Like how the message is coded Utf8).  | |||
## Hypermedia Each access to the next step of the application is describe in the current message.  | |||
# Hyercharchie   | |||
# Code-on-Demande(facultative): Script excecution on the client retreived from the server.      | |||
==MVC Setup==   | |||
* In the web.xml specify the location of the Spring Configuration File  | * In the web.xml specify the location of the Spring Configuration File  | ||
<pre>  | <pre>  | ||
Revision as of 17:23, 5 December 2014
Notes
Rest Architecture
REST (REpresentational State Transfer) New naming : HATEOAS (Hypermedia as the Engine of Application State)
- Client-serveur: Data remain on serveur and client is a separated entity
 - No state: Each request provide to the server all the necessary information to provide the service
 - Cache: The information sent by the server must contain, creation date, expiration date.
 - Uniform Interface:
- Each resources has a unic Id;
 - Resources have representation defined;
 - Auto descriptive message: The content and how to read the message; (Like how the message is coded Utf8).
 - Hypermedia Each access to the next step of the application is describe in the current message.
 
 - Hyercharchie
 - Code-on-Demande(facultative): Script excecution on the client retreived from the server.
 
MVC Setup
- In the web.xml specify the location of the Spring Configuration File
 
    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>classpath:spring/business-config.xml, classpath:spring/tools-config.xml</param-value>
    </context-param>
OR
    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>classpath*:META-INF/spring/applicationContext*.xml</param-value>
    </context-param>