Song Peng
Results
4
comments of
Song Peng
have figure it out 'driver_id'}, {:param_name=>'driver[id]' } %>
跟 -cp没关系,应该是properties文件打包到Jar包中,代码resource.getFile()是无法访问Jar包内部的文件的,应该用resource.getInputStream(), 有没有哪个选项可以先解压缩再运行的?
启用下载的话确实没问题。不过如果不启用下载的话默认是要去classpath里找的,这个时候打包在jar包里的properties文件就无法被读取了。