问题描述
我的ehcache.xml中有以下条目
python3-cython
我正在使用Spring Boot应用程序,并希望在此处配置堆大小。但变得低于错误
<config
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:jsr107='http://www.ehcache.org/v3/jsr107'
xmlns='http://www.ehcache.org/v3'
xsi:schemaLocation="
http://www.ehcache.org/v3 http://www.ehcache.org/schema/ehcache-core-3.2.xsd
http://www.ehcache.org/v3/jsr107 http://www.ehcache.org/schema/ehcache-107-ext-3.2.xsd">
<service>
<jsr107:defaults enable-management="true" enable-statistics="true"/>
</service>
<cache alias="testsCache" uses-template="testsCache">
<expiry>
<none/>
</expiry>
</cache>
<cache-template name="testsCache">
<key-type>java.lang.String</key-type>
<value-type>com.test.Test</value-type>
<listeners>
<listener>
<!-- the the main cache event listener-->
<class>com.test.CacheEventLogger</class>
<event-firing-mode>ASYNCHRONOUS</event-firing-mode>
<event-ordering-mode>UnorDERED</event-ordering-mode>
<events-to-fire-on>CREATED</events-to-fire-on>
<events-to-fire-on>UPDATED</events-to-fire-on>
<events-to-fire-on>EXPIRED</events-to-fire-on>
<events-to-fire-on>REMOVED</events-to-fire-on>
<events-to-fire-on>evictED</events-to-fire-on>
</listener>
</listeners>
<resources>
<heap unit="MB">"${heap.size}"</heap>
</resources>
</cache-template>
</config>
application.yml
Caused by: org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '"${heap.size}"' is not a valid value for 'integer'
如何配置它?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)