load external config file in spring batch admin

前端 未结 3 994
暗喜
暗喜 2021-01-07 10:20

I downloaded the spring batch admin application in the github repo and I imported it in eclipse. it works perfectly.

Then, I asked myself how to import an external c

3条回答
  •  执笔经年
    2021-01-07 10:52

    Under main folder of spring-batch-admin template, there are three folders - java, resources and webapp. Under resources there are some property files and META-INF folder. within META-INF there are two folders - batch and servlet.

    Here If I want to add new property file "batch.properties" under resources and want to refer the property values from configuration (xml) files from "META-INF/batch/*.xml" in addition to the properties from spring-batch-admin-manager-1.0.0.M1.jar, 1. where to add below entries

    1. Where to keep "env-context.xml". Under which folders, coz in "src/main/resources/META-INF" i can see only one folder batch.

    2. I tried to create "spring/batch/override/manager/env-context.xml" under "src/main/resources/META-INF" but not able to read the property file entries.

    If you provide your working application folder structure will help me a lot.

提交回复
热议问题