alibaba/spring-cloud-alibaba

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

Open

#462 geöffnet am 20. März 2019

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Java (29.106 Stars) (8.513 Forks)batch import
area/sentinelgood first issue

Beschreibung

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

Contributor Guide