Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
renren-generator
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴迪
renren-generator
Commits
b983c4c8
Commit
b983c4c8
authored
May 12, 2020
by
gxz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决了使用非Mongo加载相应依赖的问题
同时优化了内部类的创建命名
parent
ff464827
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
RenrenApplication.java
src/main/java/io/renren/RenrenApplication.java
+3
-1
application.yml
src/main/resources/application.yml
+9
-9
No files found.
src/main/java/io/renren/RenrenApplication.java
View file @
b983c4c8
...
@@ -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
{
...
...
src/main/resources/application.yml
View file @
b983c4c8
...
@@ -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
:
m
ysql
database
:
m
ongodb
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment