META-INF/services 应该在 sbt 中的什么位置 [英] Where should the META-INF/services be in sbt

查看:100
本文介绍了META-INF/services 应该在 sbt 中的什么位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

META-INF 目录应该放在哪里以便 sbt 选择自定义配置.我在尝试使用 ServiceLoader 时遇到了这个问题,我试图在 META-INF/services 中创建自定义服务

Where should the META-INF directory be in order for sbt to pick up custom configurations. I had this issue when trying to use the ServiceLoader and I was trying to create a custom services in META-INF/services

推荐答案

如果将 META-INF 文件夹放在 src/main/resources/中,sbt 会自动获取该文件夹

The META-INF folder will get automatically picked up by sbt if you put the folder in src/main/resources/

这篇关于META-INF/services 应该在 sbt 中的什么位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆