人人代码生成器连接application.yml如何配置连接mongodb

提问 未结 1 58
小与
小与 2021-04-07
悬赏:20积分
server: port: 80 # mysql spring: datasource: type: com.alibaba.druid.pool.DruidDataSource #MySQL配置 driverClassName: com.mysql.cj.jdbc.Driver url: jdbc:mysql://localhost:3306/renren_fast?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai username: root password: root #oracle配置 # driverClassName: oracle.jdbc.OracleDriver # url: jdbc:oracle:thin:@47.100.206.162:1521:xe # username: renren # password: 123456 #SQLServer配置 # driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver # url: jdbc:sqlserver://192.168.10.10:1433;DatabaseName=renren_fast # username: sa # password: 123456 #PostgreSQL配置 # driverClassName: org.postgresql.Driver # url: jdbc:postgresql://192.168.10.10:5432/renren_fast # username: postgres # password: 123456 jackson: time-zone: GMT+8 date-format: yyyy-MM-dd HH:mm:ss resources: static-locations: classpath:/static/,classpath:/views/ #mongodb: host: 192.168.40.184 port: 40000 auth: true #是否使用密码验证 username: msb-rw password: msb-rw source: 123456 database: mongodb mybatis-plus: mapperLocations: classpath:mapper/**/*.xml pagehelper: reasonable: true supportMethodsArguments: true params: count=countSql #指定数据库,可选值有【mysql、oracle、sqlserver、postgresql、mongodb】 renren: database: mongodb
回帖