Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Y
yudao-cloud
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
hblj
yudao-cloud
Commits
25ecc251
提交
25ecc251
authored
5月 10, 2019
作者:
YunaiV
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
- 后端:引入 MyBatis Plus 美滋滋
上级
53fff39a
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
37 行增加
和
17 行删除
+37
-17
pom.xml
common/common-framework/pom.xml
+1
-1
AdminMVCAutoConfiguration.java
...coder/mall/spring/boot/web/AdminMVCAutoConfiguration.java
+1
-1
pom.xml
pom.xml
+6
-0
pom.xml
system/system-service-impl/pom.xml
+2
-6
AccessLogMapper.java
.../main/java/cn/iocoder/mall/admin/dao/AccessLogMapper.java
+2
-3
application.yaml
...m-service-impl/src/main/resources/config/application.yaml
+13
-3
application.yaml
...r-service-impl/src/main/resources/config/application.yaml
+12
-3
没有找到文件。
common/common-framework/pom.xml
浏览文件 @
25ecc251
...
...
@@ -69,7 +69,7 @@
<dependency>
<groupId>
org.mybatis
</groupId>
<artifactId>
mybatis
</artifactId>
<version>
3.5.
0
</version>
<version>
3.5.
1
</version>
</dependency>
<dependency>
<groupId>
com.fasterxml.jackson.core
</groupId>
...
...
common/mall-spring-boot/src/main/java/cn/iocoder/mall/spring/boot/web/AdminMVCAutoConfiguration.java
浏览文件 @
25ecc251
...
...
@@ -41,7 +41,7 @@ public class AdminMVCAutoConfiguration implements WebMvcConfigurer {
}
@Bean
@ConditionalOnMissingBean
(
Global
ResponseBody
Handler
.
class
)
@ConditionalOnMissingBean
(
Global
Exception
Handler
.
class
)
public
GlobalExceptionHandler
globalExceptionHandler
()
{
return
new
GlobalExceptionHandler
();
}
...
...
pom.xml
浏览文件 @
25ecc251
...
...
@@ -39,6 +39,7 @@
<springfox-swagger.version>
2.9.2
</springfox-swagger.version>
<swagger-bootstrap-ui.version>
1.9.3
</swagger-bootstrap-ui.version>
<mybatis-spring-boot-starter.version>
2.0.0
</mybatis-spring-boot-starter.version>
<mybatis-plus.version>
3.1.1
</mybatis-plus.version>
<xxl-job.version>
2.0.1
</xxl-job.version>
<guava.version>
27.0.1-jre
</guava.version>
<rocketmq-spring-boot-starter.version>
2.0.1
</rocketmq-spring-boot-starter.version>
...
...
@@ -141,6 +142,11 @@
<artifactId>
mybatis-spring-boot-starter
</artifactId>
<version>
${mybatis-spring-boot-starter.version}
</version>
</dependency>
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
mybatis-plus-boot-starter
</artifactId>
<version>
${mybatis-plus.version}
</version>
</dependency>
<dependency>
<groupId>
com.google.guava
</groupId>
...
...
system/system-service-impl/pom.xml
浏览文件 @
25ecc251
...
...
@@ -21,10 +21,6 @@
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-jdbc
</artifactId>
</dependency>
<dependency>
<groupId>
org.apache.dubbo
</groupId>
...
...
@@ -44,8 +40,8 @@
</dependency>
<dependency>
<groupId>
org.mybatis.spring.boot
</groupId>
<artifactId>
mybatis-
spring
-boot-starter
</artifactId>
<groupId>
com.baomidou
</groupId>
<artifactId>
mybatis-
plus
-boot-starter
</artifactId>
</dependency>
<dependency>
...
...
system/system-service-impl/src/main/java/cn/iocoder/mall/admin/dao/AccessLogMapper.java
浏览文件 @
25ecc251
package
cn
.
iocoder
.
mall
.
admin
.
dao
;
import
cn.iocoder.mall.admin.dataobject.AccessLogDO
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.springframework.stereotype.Repository
;
@Repository
public
interface
AccessLogMapper
{
void
insert
(
AccessLogDO
entity
);
public
interface
AccessLogMapper
extends
BaseMapper
<
AccessLogDO
>
{
}
system/system-service-impl/src/main/resources/config/application.yaml
浏览文件 @
25ecc251
...
...
@@ -7,9 +7,19 @@ spring:
password
:
${MALL_MYSQL_PASSWORD}
# mybatis
mybatis
:
config-location
:
classpath:mybatis-config.xml
mapper-locations
:
classpath:mapper/*.xml
#mybatis:
# config-location: classpath:mybatis-config.xml
# mapper-locations: classpath:mapper/*.xml
# type-aliases-package: cn.iocoder.mall.admin.dataobject
# mybatis-plus
mybatis-plus
:
configuration
:
map-underscore-to-camel-case
:
true
# 虽然默认为 true ,但是还是显示去指定下。
global-config
:
db-config
:
id-type
:
auto
mapper-locations
:
classpath*:mapper/*.xml
type-aliases-package
:
cn.iocoder.mall.admin.dataobject
# dubbo
...
...
user/user-service-impl/src/main/resources/config/application.yaml
浏览文件 @
25ecc251
...
...
@@ -7,9 +7,18 @@ spring:
password
:
${MALL_MYSQL_PASSWORD}
# mybatis
mybatis
:
config-location
:
classpath:mybatis-config.xml
mapper-locations
:
classpath:mapper/*.xml
#mybatis:
# config-location: classpath:mybatis-config.xml
# mapper-locations: classpath:mapper/*.xml
# type-aliases-package: cn.iocoder.mall.user.biz.dataobject
# mybatis-plus
mybatis-plus
:
configuration
:
mapUnderscoreToCamelCase
:
true
# 虽然默认为 true ,但是还是显示去指定下。
mapperLocations
:
classpath*:mapper/*.xml
typeAliasesPackage
:
cn.iocoder.mall.user.biz.dataobject
mapper-locations
:
classpath*:mapper/*.xml
type-aliases-package
:
cn.iocoder.mall.user.biz.dataobject
# dubbo
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论