2021年3月6日星期六

Read multiple properties file in FTL

I have to create a java project library with ftl having below structure

src/main/resource      +- alpha/          +- role.ftl          +- common.properties      +- beta/          +- role.ftl          +- common.properties  

common.properties file (alpha package)

org.role=admin  role.department=devops  

common.propertes file (beta package)

org.role=developer  role.department=application  

Now based on requirement, wanted to use the respective properties file in respective role.ftl file (alpha/beta folder) like below

<p>${org.role} is working in ${role.department}</p>  

I am new to FTL not sure how to implement it? is basic import file statement in FTL will work for the properties file?

https://stackoverflow.com/questions/66435057/read-multiple-properties-file-in-ftl March 02, 2021 at 03:32PM

没有评论:

发表评论