Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fgqyxxlr
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
yaru
fgqyxxlr
Commits
c24758f4
Commit
c24758f4
authored
Sep 23, 2019
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
指定 VFS 的实现
parent
f83a8ff4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
ruoyi-framework/src/main/java/com/ruoyi/framework/config/MyBatisConfig.java
+3
-0
sql/ry_20190920.sql
+3
-3
No files found.
ruoyi-framework/src/main/java/com/ruoyi/framework/config/MyBatisConfig.java
View file @
c24758f4
...
...
@@ -5,8 +5,10 @@ import java.util.ArrayList;
import
java.util.HashSet
;
import
java.util.List
;
import
javax.sql.DataSource
;
import
org.apache.ibatis.io.VFS
;
import
org.apache.ibatis.session.SqlSessionFactory
;
import
org.mybatis.spring.SqlSessionFactoryBean
;
import
org.mybatis.spring.boot.autoconfigure.SpringBootVFS
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
...
...
@@ -85,6 +87,7 @@ public class MyBatisConfig
String
typeAliasesPackage
=
env
.
getProperty
(
"mybatis.typeAliasesPackage"
);
String
mapperLocations
=
env
.
getProperty
(
"mybatis.mapperLocations"
);
typeAliasesPackage
=
setTypeAliasesPackage
(
typeAliasesPackage
);
VFS
.
addImplClass
(
SpringBootVFS
.
class
);
final
SqlSessionFactoryBean
sessionFactory
=
new
SqlSessionFactoryBean
();
sessionFactory
.
setDataSource
(
dataSource
);
...
...
sql/ry_20190920.sql
View file @
c24758f4
...
...
@@ -244,9 +244,9 @@ insert into sys_menu values('1053', '状态修改', '110', '5', '#', '', 'F', '
insert
into
sys_menu
values
(
'1054'
,
'任务详细'
,
'110'
,
'6'
,
'#'
,
''
,
'F'
,
'0'
,
'monitor:job:detail'
,
'#'
,
'admin'
,
'2018-03-16 11-33-00'
,
'ry'
,
'2018-03-16 11-33-00'
,
''
);
insert
into
sys_menu
values
(
'1055'
,
'任务导出'
,
'110'
,
'7'
,
'#'
,
''
,
'F'
,
'0'
,
'monitor:job:export'
,
'#'
,
'admin'
,
'2018-03-16 11-33-00'
,
'ry'
,
'2018-03-16 11-33-00'
,
''
);
-- 代码生成按钮
insert
into
sys_menu
values
(
'1056'
,
'生成查询'
,
'114'
,
'1'
,
'#'
,
''
,
'F'
,
'0'
,
'tool:gen:list'
,
'#'
,
'admin'
,
'2018-03-16 11-33-00'
,
'ry'
,
'2018-03-16 11-33-00'
,
''
);
insert
into
sys_menu
values
(
'1057'
,
'生成修改'
,
'114'
,
'2'
,
'#'
,
''
,
'F'
,
'0'
,
'tool:gen:edit'
,
'#'
,
'admin'
,
'2018-03-16 11-33-00'
,
'ry'
,
'2018-03-16 11-33-00'
,
''
);
insert
into
sys_menu
values
(
'1058'
,
'生成删除'
,
'114'
,
'3'
,
'#'
,
''
,
'F'
,
'0'
,
'tool:gen:remove'
,
'#'
,
'admin'
,
'2018-03-16 11-33-00'
,
'ry'
,
'2018-03-16 11-33-00'
,
''
);
insert
into
sys_menu
values
(
'1056'
,
'生成查询'
,
'114'
,
'1'
,
'#'
,
''
,
'F'
,
'0'
,
'tool:gen:list'
,
'#'
,
'admin'
,
'2018-03-16 11-33-00'
,
'ry'
,
'2018-03-16 11-33-00'
,
''
);
insert
into
sys_menu
values
(
'1057'
,
'生成修改'
,
'114'
,
'2'
,
'#'
,
''
,
'F'
,
'0'
,
'tool:gen:edit'
,
'#'
,
'admin'
,
'2018-03-16 11-33-00'
,
'ry'
,
'2018-03-16 11-33-00'
,
''
);
insert
into
sys_menu
values
(
'1058'
,
'生成删除'
,
'114'
,
'3'
,
'#'
,
''
,
'F'
,
'0'
,
'tool:gen:remove'
,
'#'
,
'admin'
,
'2018-03-16 11-33-00'
,
'ry'
,
'2018-03-16 11-33-00'
,
''
);
insert
into
sys_menu
values
(
'1059'
,
'预览代码'
,
'114'
,
'4'
,
'#'
,
''
,
'F'
,
'0'
,
'tool:gen:preview'
,
'#'
,
'admin'
,
'2018-03-16 11-33-00'
,
'ry'
,
'2018-03-16 11-33-00'
,
''
);
insert
into
sys_menu
values
(
'1060'
,
'生成代码'
,
'114'
,
'5'
,
'#'
,
''
,
'F'
,
'0'
,
'tool:gen:code'
,
'#'
,
'admin'
,
'2018-03-16 11-33-00'
,
'ry'
,
'2018-03-16 11-33-00'
,
''
);
...
...
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