Skip to main content

Spring Web

  • Chapter
  • 1088 Accesses

Abstract

In previous chapters, multilayered style projects were depicted. On top of the service layer was always the presentation layer, or the Web layer. This layer is the top layer of an application, and its main function is to translate user actions into commands that lower-level layers can understand and transform results from them into user-understandable data.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    Pivotal Certified Spring Web Application Developer Exam; http://www.apress.com/9781484208090 .

  2. 2.

    FacesServlet is a servlet that manages the request processing lifecycle for web applications that utilize JavaServer Faces to construct the user interface. org.springframework.web.context

  3. 3.

    This resembles class inheritance: the superclass inherits the parent class and can access its members.

  4. 4.

    HTTP GET request is used when the user is requesting data from the application. HTTP POST and PUT are requests that send data to the application.

  5. 5.

    The code of this class can be found here: https://github.com/spring-projects/spring-framework/blob/master/ spring-web/src/main/java/org/springframework/web/SpringServletContainerInitializer.java.

  6. 6.

    A full list of authentication technologies with which Spring Security integrates can be found here: http://docs.spring.io/ spring-security/site/docs/current/reference/htmlsingle/#what-is-acegi-security

  7. 7.

    Available here: http://www.springframework.org/schema/security/spring-security.xsd .

  8. 8.

    Remember-me or persistent-login authentication refers to web sites able to remember the identity of a principal between sessions.

  9. 9.

    This is a type of attack that consists in hacking an existing session in order to execute unauthorized commands in a web application. You can read more about it here: https://en.wikipedia.org/wiki/Cross-site_request_forgery .

  10. 10.

    The full list of configuration details changes that were made to match Java Configuration can be found here: https://jira.spring.io/browse/SEC-2783 .

  11. 11.

    A refreshable bean is a dynamic-language-backed bean that with a small amount of configuration can monitor changes in its underlying source file resource and then reload itself when the dynamic language source file is changed (for example when a developer edits and saves changes to the file on the filesystem). Official documentation reference: http://docs.spring.io/spring/docs/current/ spring-framework-reference/htmlsingle/#dynamic-language-refreshable-beans.

  12. 12.

    Read more about MD5 here: https://en.wikipedia.org/wiki/MD5

  13. 13.

    Documentation reference for security table DDL scripts: http://docs.spring.io/spring-security/site/docs/4.1.3 . RELEASE/reference/htmlsingle/#appendix-schema.

  14. 14.

    Cross-site request forgery or session-riding exploits the trust that a site has in a user’s browser. When the CSRF token is stored in the session, it has a specific value for the duration of that session. So even if the session is intercepted and data from it is used by an attacker to access the site, by disabling the CSRF token at logout, sensitive requests that require the CSRF token are prohibited.

  15. 15.

    JSR 250: Common annotations for the JavaTM Platform https://www.jcp.org/en/jsr/detail?id=250 .

  16. 16.

    Spring Boot official page: http://projects.spring.io/spring-boot/

  17. 17.

    The full list is available in the Spring Boot Reference documentation http://docs.spring.io/spring-boot/docs/current/ reference/htmlsingle/#using-boot-starter

  18. 18.

    There is a long list of Spring Boot common application properties, and you can inspect it in the Spring Boot Reference documentation: http://docs.spring.io/spring-boot/docs/1.4.0.RELEASE/reference/htmlsingle/ #common-application-properties.

  19. 19.

    You can create your own ASCII banner using this site: http://patorjk.com/software/taag/#p=display&f=Graffiti&t=Type%20Something%20

  20. 20.

    The @ConfigurationProperties annotation can be used with *.properties files too, but it makes no sense to mention it twice.

  21. 21.

    Spring Environment logging variables: http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/ #boot-features-custom-log-configuration

  22. 22.

    Testing improvements in Spring Boot 1.4 https://spring.io/blog/2016/04/15/testing-improvements-in-spring-boot-1-4 .

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Iuliana Cosmina

About this chapter

Cite this chapter

Cosmina, I. (2017). Spring Web. In: Pivotal Certified Professional Spring Developer Exam. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0811-3_6

Download citation

Publish with us

Policies and ethics