alibaba/spring-cloud-alibaba

FileNotFoundException throws when rules is provided by local resources in classpath and executed in command line

Open

#462 建立於 2019年3月20日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)Java (29,106 star) (8,513 fork)batch import
area/sentinelgood first issue

描述

Component: Sentinel

Description: If the rules were configured in local file in classpath and executed the built jar in command line, FileNotFoundException throws, says,

class path resource [sentinel.json] cannot be resolved to absolute file path because it does not reside in the file system:jar:file:/D:/projects/a/b/c/blabal.jar!/BOOT-INF/classes!/sentinel.json

Investigation: class: FileDataSourceProperties method:preCheck

貢獻者指南

FileNotFoundException throws when rules is provided by local resources in classpath and executed in command line · alibaba/spring-cloud-alibaba#462 | Good First Issue