JSF faces config file outside WEB-INF?

前端 未结 3 632
执念已碎
执念已碎 2021-01-12 19:20

When creating multiple faces config files, it is correct to have the faces-config.xml outside of WEB-INF? The JSF spec does not seem to be very clear about this (Section 10.

3条回答
  •  北海茫月
    2021-01-12 20:19

    As mentioned in David's answer, it's not recommended to put the config files outside of the WEB-INF directory. However, if you're looking for ways to organise your project, you might try creating a new subdirectory under WEB-INF.

    For example, when I'm dealing with lots of faces-config files, I'll create a directory /WEB-INF/config and put the faces-config files in there.

提交回复
热议问题