Java 如何在嵌入式spring boot KeyClope中设置主题?
目前正在使用spring boot中嵌入的KeyClope。 我在参考资料下创建了主题以创建自定义主题。 它在keydape-server.json中注册,如下所示Java 如何在嵌入式spring boot KeyClope中设置主题?,java,keycloak,Java,Keycloak,目前正在使用spring boot中嵌入的KeyClope。 我在参考资料下创建了主题以创建自定义主题。 它在keydape-server.json中注册,如下所示 "theme": { "staticMaxAge": "${keycloak.theme.staticMaxAge:2592000}", "cacheTemplates": "${keycloak.theme.cacheTemp
"theme": {
"staticMaxAge": "${keycloak.theme.staticMaxAge:2592000}",
"cacheTemplates": "${keycloak.theme.cacheTemplates:true}",
"cacheThemes": "${keycloak.theme.cacheThemes:true}",
"folder": {
"dir": "src/main/resources/themes"
}
}
虽然这在当地环境下效果很好。使用jar文件运行时,它不起作用。
原因似乎是没有找到正确的路径。有什么解决办法吗?我也有同样的问题。我将我的应用程序部署到AWS ElasticBeanstalk,但我无法设置KeyClope以正确定位主题文件夹 我尝试了我能想到的所有变化:
- 在/tmp文件夹下
- /BOOT-INF
- 和简单的主题
"folder": { "dir": "/home/ec2-user/themes" }
但我无法从application.property文件动态获取此值