我正尝试在Lucee服务器中使用ORM,但继续得到错误there is no Session for the datasource [mydatasource]
。数据源确实存在并且连接正常工作,在管理员中进行验证并使用cfquery进行测试。Lucee ORM没有数据源的会话
这里是application.cfc
<cfcomponent>
<cffunction name="onRequestStart" access="public" returntype="boolean" output="false">
<cfset this.datasource = "rift" />
<cfset this.ormEnabled = true />
<cfsetting showdebugoutput="false" />
<cfset this.ormsettings = { } />
<!---<cfset this.ormsettings.dbcreate = "dropcreate" />--->
<cfset this.ormsettings.logSQL = true />
<cfset ORMReload() />
<cfset testquery = ORMExecuteQuery("from test")>
<cfreturn true />
</cffunction>
</cfcomponent>
那么......如果启用会话管理会发生什么? –