`
boogie
  • 浏览: 237382 次
  • 性别: Icon_minigender_1
  • 来自: 宁波
社区版块
存档分类
最新评论

Configure a bean with map property

阅读更多

1、Using XML

  <bean id="sqlService" class="SqlService">
    <property name="dataSourceMap">
      <map>
        <entry key="a">
          <ref bean="dataSourceA"/>
        </entry>
        <entry key="b">
          <ref bean="dataSourceB"/>
        </entry>
      </map>
    </property>
  </bean>

 2、Using the Spring DSL

beans = {
   def dsMap = new HashMap()
   dsMap.put('a',  ref('dataSourceA') )
   dsMap.put('b',  ref('dataSourceB') )

   sqlService(SqlService) {
       dataSourceMap = dsMap
  }
  ...
}
 
分享到:
评论

相关推荐

    How to configure DCM UDS with the DEXT Editor.pdf

    How to configure DCM UDS with the DEXT Editor.pdf

    gcc-4.9.4安装包

    在编译安装软件的时候,发现错误configure: error: *** A compiler with support for C++11 language features is required. 要支持C++11,必须升级到gcc4.7以上。

    Nginx在configure时的初选参数

    Nginx在configure时的初选参数,请提前建立nginx用户并-s设置/sbin/nologin

    vim-configure.tar.gz_vim_vim_configure

    "vim-configure.tar.gz_vim_vim_configure" 是一个包含了 Vim 配置文件的压缩包,旨在帮助用户优化 Vim 的使用体验,提供自动提示、补全功能以及代码高亮等特性。 在 Vim 中配置这些功能,可以使编辑效率大幅提升。...

    Getting Started with Grunt: The JavaScript Task Runner

    Grunt, along with its wide range of plugins, provides a simple way of managing the large number of build tasks required to maintain a sophisticated web application. Getting Started with Grunt: The ...

    cisco 13-1 Packet Tracer - Configure a Wireless Network

    13-1 Packet Tracer - Configure a Wireless Network

    A powerful tool to configure network clientside

    this is a powerful tool to configure network, please download both clientside and serverside.

    centos configure

    ### CentOS Configure详解 #### 一、引言 在Linux环境下,尤其是CentOS系统中,通过源代码编译安装软件是一项常见的需求。对于开发者和系统管理员而言,熟练掌握编译安装的过程不仅能提高工作效率,还能增强对系统...

    Configure命令详细解释.doc

    Configure 命令详细解释 Configure 命令是 Linux 系统下一个重要的命令,用于生成自动化安装文件。它提供了许多选项,用户可以根据需要选择合适的选项来 configure 软件包。下面对每一个选项进行详细的介绍: 1. -...

    Qt5 configure参数说明文档

    标题"Qt5 configure参数说明文档"指的是此文档旨在解释和说明如何使用Qt5软件框架中的configure工具的参数。configure是一个用于为特定系统配置源代码树的脚本,以便于编译并安装Qt5及其相关组件。文档中可能会详细...

    Qt configure参数解释

    QT configure参数解释 编译Qt源码必备的教程

    linux下configure命令详细介绍

    而`configure`脚本作为源码安装的重要步骤,是理解和掌握Linux软件安装基础的关键。`configure`脚本通常由`autoconf`工具生成,用于检测系统的特性和配置,以便自动生成适合当前系统的`Makefile`。 `configure`脚本...

    gcc_4.9.4_gcc+gmp+mpfr+mpc.tar.gz

    编译安装软件的时候,发现错误configure: error: *** A compiler with support for C++11 language features is required. 原来是gcc版本太低了,我的版本是gcc version 4.6.3 想要支持C++11,必须升级到gcc4.8...

    4.2.7Configure Router-on-a-Stick Inter-VLAN Routing

    4.2.7 Packet Tracer - Configure Router-on-a-Stick Inter-VLAN Routing Cisco Packet Tracer 思科模拟器 正确答案文件 可直接上交正确答案文件 本答案版权归mewhaku所有,严禁再次转载!!! Copyright @...

    lidmodbus3.14(解决configure.js错误)

    《libmodbus 3.14:解决configure.js错误详解》 libmodbus是一个流行的开源库,用于实现Modbus通信协议。它支持多种操作系统,包括Linux、Windows和FreeRTOS等,广泛应用于工业自动化、物联网设备以及其他需要进行...

    13-3 Packet Tracer - Configure a WPA2 Enterprise WLAN on the WLC

    13-3 Packet Tracer - Configure a WPA2 Enterprise WLAN on the WLC,cisco实验

    虚拟串口软件安装包Configure Virtual Serial Port Driver

    虚拟串口软件安装包Configure Virtual Serial Port Driver,这是一种可以创建虚拟串口并进行配置的软件。串口,又称为串行端口,是一种设备通信接口,广泛应用于计算机和各种外部设备之间的数据传输。然而,随着技术...

    FTP使用什么命令来定位服务器与本地硬盘的路径 ftp.rar

    ./configure --with-c-compiler=arm-ca53-linux-gnueabihf-gcc ./configure --with-c-compiler=aarch64-himix100-linux-gcc ./configure --with-c-compiler=arm-linux-androideabi-gcc ./configure --with-c-...

    Spring源码学习五:BeanDefinition装载1

    // Configure the bean definition reader with this context's resource loading environment. beanDefinitionReader.setEnvironment(this.getEnvironment()); beanDefinitionReader.setResourceLoader(this); ...

    linux configure 软件发布介绍

    配置脚本`configure`是这个过程中的关键组件,它负责检查目标系统的特性,生成适当的Makefile以适应不同的环境。本文将深入讲解`configure`及其相关工具在Linux软件发布的角色。 `configure`脚本是基于Autoconf工具...

Global site tag (gtag.js) - Google Analytics