zoukankan      html  css  js  c++  java
  • spring配置文件注解方式引入的两种方式

    一、#{beanID['propertiesName']}方式

    <bean id="propertyConfigurer"  class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
            <property name="fileEncoding" value="utf-8" />
            <property name="locations">
                <list>
                    <value>classpath:/config/pay-alipay.properties</value>
                </list>
            </property>
    </bean>
    @Value("#{propertyConfigurer['workFlow.url']}") private String flowUrl;

    二、${'propertiesName'}方式

    @Value("${material.qrCode.target.url}")
    private String qrCodeUrl;
  • 相关阅读:
    Maven
    Maven
    Maven
    Maven
    Maven
    Maven
    Maven
    Maven
    Maven教程
    SASS
  • 原文地址:https://www.cnblogs.com/cocoat/p/6628147.html
Copyright © 2011-2022 走看看