我正在尝试将 Apache Derby 嵌入到应用程序中。当我直接从 IntelliJ 运行它时,一切正常,但sbt run
会产生异常:
Caused by: java.security.AccessControlException: access denied org.apache.derby.security.SystemPermission( "engine", "usederbyinternals" )
这似乎与 SBT 使用的 SecurityManager 有关。有没有办法禁用、重新配置或覆盖默认的 SBT SecurityManager?