Commit b983c4c8 by gxz

解决了使用非Mongo加载相应依赖的问题

同时优化了内部类的创建命名
parent ff464827
...@@ -3,8 +3,10 @@ package io.renren; ...@@ -3,8 +3,10 @@ package io.renren;
import org.mybatis.spring.annotation.MapperScan; import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
@SpringBootApplication @SpringBootApplication(exclude = {MongoAutoConfiguration.class, MongoDataAutoConfiguration.class})
@MapperScan("io.renren.dao") @MapperScan("io.renren.dao")
public class RenrenApplication { public class RenrenApplication {
......
...@@ -34,14 +34,14 @@ spring: ...@@ -34,14 +34,14 @@ spring:
resources: resources:
static-locations: classpath:/static/,classpath:/views/ static-locations: classpath:/static/,classpath:/views/
#mongodb: mongodb:
# host: localhost host: localhost
# port: 27017 port: 27017
# auth: false #是否使用密码验证 auth: false #是否使用密码验证
# username: tincery username: tincery
# password: renren password: renren
# source: 123456 source: 123456
# database: test database: test
mybatis-plus: mybatis-plus:
mapperLocations: classpath:mapper/**/*.xml mapperLocations: classpath:mapper/**/*.xml
...@@ -55,5 +55,5 @@ pagehelper: ...@@ -55,5 +55,5 @@ pagehelper:
#指定数据库,可选值有【mysql、oracle、sqlserver、postgresql、mongodb】 #指定数据库,可选值有【mysql、oracle、sqlserver、postgresql、mongodb】
renren: renren:
database: mysql database: mongodb
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment