Results 1 to 2 of 2

Thread: Diff between ClassPathResource & ServletContextResource.

  1. #1
    Join Date
    Sep 2011
    Posts
    1

    Default Diff between ClassPathResource & ServletContextResource.

    Can someone please tell me what exactly is the diff between a ClassPathResource & a ServletContextResource?

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    What does the name tell you...

    ClassPathResouce - reads resources from the class path (javadoc).
    ServletContextResouce - reads resources from the web app root (javadoc).
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •