alibaba/spring-cloud-alibaba

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

Aberta

#462 aberto em 20 de mar. de 2019

 (3 comentários) (0 reação) (0 responsável)Java (8.513 forks)batch import
area/sentinelgood first issue

Métricas do repositório

Stars
 (29.106 estrelas)
Métricas de merge de PR
 (Mesclagem média 6d 3h) (7 fundiu PRs em 30d)

Description

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

Guia do colaborador