You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
780 B

2 years ago
  1. package com.ims.studentManager.ConfigPackage;
  2. import org.springframework.beans.factory.annotation.Value;
  3. import org.springframework.context.annotation.ComponentScan;
  4. import org.springframework.context.annotation.Configuration;
  5. import org.springframework.context.annotation.PropertySource;
  6. @Configuration
  7. @ComponentScan(basePackages="com.ims")
  8. @PropertySource("classpath:/movieadvisor.properties")
  9. public class AppConfig {
  10. @Value("${file.path}")
  11. private String file;
  12. @Value("${file.csv.separator}")
  13. private String separator;
  14. @Value("${file.csv.list_separator}")
  15. private String listSeparator;
  16. public String getFile() {
  17. return file;
  18. }
  19. public String getSeparator() {
  20. return separator;
  21. }
  22. public String getListSeparator() {
  23. return listSeparator;
  24. }
  25. }