请问一下cuba spring.xml里bean定义的时候如何使用type = SourceType.DATABASE的配置项呢

@Source(type = SourceType.DATABASE)
public interface MyConfiguration extends Config {

不是很明白你的问题,能否详细说一下

my.host与my.port都是使用的CUBA Configuration管理,type=SourceType.DATABASE,这种支持吗

<bean id="connectionFactory" class="***">
    <property name="host" value="${my.host}" />
    <property name="port" value="${my.port}" />
</bean>

可以的,只要不是与 CUBA 启动服务相关的配置,都可以放在数据库

现在看来行不通,看来下cuba里是用CubaPropertyPlaceholderConfigurer去加载properties,并没有去读取database里的配置项,导致spring.xml初始化bean时读不到配置项值。