I have configured the bellow configuration in Wildfly stanalone.xml configuration.here when /test is called it will return a file inside the test directory.