配置MongoDB(个人公司公共模块,备忘一下)

引入jar包

        <dependency>
            <groupId>com.ehaier.shoppingmall</groupId>
            <artifactId>shoppingmall-core</artifactId>
            <version>3.0.10</version>
        </dependency>

        <dependency>
            <groupId>org.springframework.data</groupId>
            <artifactId>spring-data-mongodb</artifactId>
            <version>2.1.5.RELEASE</version>
        </dependency>
        <dependency>
            <groupId>org.apache.xmlrpc</groupId>
            <artifactId>xmlrpc-client</artifactId>
            <version>3.1.3</version>
        </dependency>

配置yml

mongo:
  replica-set: 10.1.132.28:27017
prop:
  python:
    addr: http://10.1.132.22:30001/RPC2
  image:
    source:
      domain: img.rrscdn.dev/

service.xml引入

<import resource="classpath:mongo-config.xml"></import>
上一篇:/usr/include/X11/Shell.h:51:26: 致命错误:X11/SM/SMlib.h:没有那个文件或目录


下一篇:HTML5中Form表单的基础标签