-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello, according to the description here it should be possible to define an additional config file.
We're not using a WEB-INF folder in the project and I've been struggling to integrate the additional config file.
Here's what I've tried so far:
I've tried different values, but nothing seemed to work.
File is located at src/main/resources/metainfo/zk/zk-local.xml
What am I doing wrong?
What is the correct path to set?
And where do I set the path?
I suppose you run spring boot in the JAR package.
org.zkoss.zk.config.path
can be a path that ServletContext.getResourceAsStream() can accept, e.g.
relative to the /META-INF/resources directory of a JAR file inside the web application's /WEB-INF/lib directory
so you can put it under
src/main/resources/META-INF/resources/zklocal.xml
<library-property>
<name>org.zkoss.zk.config.path</name>
<value>zklocal.xml</value>
</library-property>
Asked: 2022-10-20 21:22:44 +0800
Seen: 10 times
Last updated: Oct 21 '22
How is it going? If my answer solves your problem, please accept the answer. :)
hawk ( 2022-11-01 09:16:13 +0800 )edit