Results 1 to 2 of 2

Thread: @ImportResource with System properties

  1. #1
    Join Date
    Jan 2012
    Posts
    9

    Default @ImportResource with System properties

    Is it possible to use the @ImportResource annotation with a system property specifying the file location?

    This doesnt work:

    Code:
    @ImportResource("${properties.location}")
    public class Config {
    ...
    }
    Where "properties.location" is a system property specifying the location of the file.

  2. #2
    Join Date
    Jan 2012
    Posts
    9

    Default

    Can anyone help with this? I'm quite surprised Spring requires a hardcoded file path and there is no way using annotations to get round this as far as I can see.

Posting Permissions

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