Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 在ehcache xml中配置堆大小_Java_Spring_Spring Boot_Ehcache - Fatal编程技术网

Java 在ehcache xml中配置堆大小

Java 在ehcache xml中配置堆大小,java,spring,spring-boot,ehcache,Java,Spring,Spring Boot,Ehcache,我的ehcache.xml中有以下条目 <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.ehcach

我的ehcache.xml中有以下条目

<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

heap.size:100

如何配置

Caused by: org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '"${heap.size}"' is not a valid value for 'integer'