title: Hot to make the path universal for all OS?
body: <p>Hot to make the path written on line 9 universal for all OS?</p>
  <pre><code>import lombok.Data;
  import org.springframework.beans.factory.annotation.Value;
  import org.springframework.context.annotation.Configuration;
  import org.springframework.context.annotation.PropertySource;
  
  
  @Configuration
  @Data
  @PropertySource(&quot;../../../../../resources/application.properties&quot;)
  public class BotConfig {
      @Value(&quot;${bot.username}&quot;)
      private String username;
  
      @Value(&quot;${bot.token}&quot;)
      private String token;
  }
  </code></pre>
  <p>I've tried to use File.pathSeparator but it didn't work because &quot;Attribute value must be constant&quot;. String.format() also didn't work.</p>