Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
519 views
in Technique[技术] by (71.8m points)

drools - save and fetch none-property files from spring config server

I'm developing a Spring Boot app integrating with drools engine. For that, I need to use a specific file type with extension .drl (eg: my-rule-file.drl). These files contains logics which are used by application and loaded into the application context when app starts.

Usually these files are located in application's src/main/resources folder.

Therefore if I make a change to one of these files, I have to re build the whole application and redeploy.

Instead, I want to store those files in a remote location and fetch from there when application starts. In that way I only need to restart the application to apply new changes.

My Spring boot app has already connected to a config server to fetch property files.

Therefore, are there any method to store my .drl files in same config server and fetch when application starts?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...