Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Y
yudao-cloud
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
hblj
yudao-cloud
Commits
2523f8b6
提交
2523f8b6
authored
2月 22, 2019
作者:
YunaiV
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
初始化 order 子系统项目结构
上级
398d23cc
隐藏空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
231 行增加
和
20 行删除
+231
-20
pom.xml
order/order-application/pom.xml
+103
-0
ProductApplication.java
...c/main/java/cn/iocoder/mall/order/ProductApplication.java
+14
-0
application.yaml
order/order-application/src/main/resources/application.yaml
+33
-0
mybatis-config.xml
...r/order-application/src/main/resources/mybatis-config.xml
+0
-0
pom.xml
order/order-service-api/pom.xml
+16
-0
pom.xml
order/pom.xml
+21
-0
pom.xml
pom.xml
+1
-0
application.properties
...uct-application/src/main/resources/application.properties
+0
-16
application.yaml
...t/product-application/src/main/resources/application.yaml
+23
-4
ProductCategoryMapper.xml
...ation/src/main/resources/mapper/ProductCategoryMapper.xml
+0
-0
ProductSkuMapper.xml
...pplication/src/main/resources/mapper/ProductSkuMapper.xml
+0
-0
mybatis-config.xml
...product-application/src/main/resources/mybatis-config.xml
+20
-0
没有找到文件。
order/order-application/pom.xml
0 → 100644
浏览文件 @
2523f8b6
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
order
</artifactId>
<groupId>
cn.iocoder.mall
</groupId>
<version>
1.0-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
order-application
</artifactId>
<properties>
<org.mapstruct.version>
1.3.0.Final
</org.mapstruct.version>
</properties>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
<dependency>
<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.mybatis.spring.boot
</groupId>
<artifactId>
mybatis-spring-boot-starter
</artifactId>
<version>
2.0.0
</version>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
dubbo
</artifactId>
<version>
2.6.5
</version>
</dependency>
<dependency>
<groupId>
com.alibaba.boot
</groupId>
<artifactId>
dubbo-spring-boot-starter
</artifactId>
<version>
0.2.1.RELEASE
</version>
</dependency>
<dependency>
<groupId>
org.apache.curator
</groupId>
<artifactId>
curator-framework
</artifactId>
<version>
2.12.0
</version>
</dependency>
<dependency>
<groupId>
org.mapstruct
</groupId>
<artifactId>
mapstruct
</artifactId>
<!-- use mapstruct-jdk8 for Java 8 or higher -->
<version>
${org.mapstruct.version}
</version>
</dependency>
<dependency>
<groupId>
io.springfox
</groupId>
<artifactId>
springfox-swagger2
</artifactId>
<version>
2.9.2
</version>
</dependency>
<dependency>
<groupId>
io.springfox
</groupId>
<artifactId>
springfox-swagger-ui
</artifactId>
<version>
2.9.2
</version>
</dependency>
</dependencies>
<build>
<plugins>
<!-- 提供给 mapstruct 使用 -->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<version>
3.5.1
</version>
<configuration>
<source>
1.8
</source>
<!-- or higher, depending on your project -->
<target>
1.8
</target>
<!-- or higher, depending on your project -->
<annotationProcessorPaths>
<path>
<groupId>
org.mapstruct
</groupId>
<artifactId>
mapstruct-processor
</artifactId>
<version>
${org.mapstruct.version}
</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
order/order-application/src/main/java/cn/iocoder/mall/order/ProductApplication.java
0 → 100644
浏览文件 @
2523f8b6
package
cn
.
iocoder
.
mall
.
order
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
@SpringBootApplication
public
class
ProductApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
ProductApplication
.
class
,
args
);
}
}
\ No newline at end of file
order/order-application/src/main/resources/application.yaml
0 → 100644
浏览文件 @
2523f8b6
spring
:
application
:
name
:
order-application
# datasource
datasource
:
url
:
jdbc:mysql://127.0.0.1:33061/mall_order?useSSL=false
driver-class-name
:
com.mysql.jdbc.Driver
username
:
root
password
:
123456
# server
server
:
port
:
8080
# mybatis
mybatis
:
config-location
:
classpath:mybatis-config.xml
mapper-locations
:
classpath:mapper/*.xml
type-aliases-package
:
cn.iocoder.mall.order.dataobject
# dubbo
dubbo
:
registry
:
address
:
zookeeper://127.0.0.1:2181
protocol
:
port
:
-1
name
:
dubbo
scan
:
base-packages
:
cn.iocoder.mall.order.service
demo
:
service
:
version
:
1.0.0
\ No newline at end of file
product/product-application/src/main/resources/mybati
s/mybatis-config.xml
→
order/order-application/src/main/resource
s/mybatis-config.xml
浏览文件 @
2523f8b6
File moved
order/order-service-api/pom.xml
0 → 100644
浏览文件 @
2523f8b6
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
order
</artifactId>
<groupId>
cn.iocoder.mall
</groupId>
<version>
1.0-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
order-service-api
</artifactId>
</project>
\ No newline at end of file
order/pom.xml
0 → 100644
浏览文件 @
2523f8b6
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
mall-parent
</artifactId>
<groupId>
cn.iocoder.mall
</groupId>
<version>
1.0-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
order
</artifactId>
<packaging>
pom
</packaging>
<modules>
<module>
order-application
</module>
<module>
order-service-api
</module>
</modules>
</project>
\ No newline at end of file
pom.xml
浏览文件 @
2523f8b6
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
<version>
1.0-SNAPSHOT
</version>
<version>
1.0-SNAPSHOT
</version>
<modules>
<modules>
<module>
product
</module>
<module>
product
</module>
<module>
order
</module>
</modules>
</modules>
<packaging>
pom
</packaging>
<packaging>
pom
</packaging>
...
...
product/product-application/src/main/resources/application.properties
deleted
100644 → 0
浏览文件 @
398d23cc
# Spring boot application
spring.application.name
=
product-rest
# Base packages to scan Dubbo Component: @com.alibaba.dubbo.config.annotation.Service
dubbo.scan.base-packages
=
cn.iocoder.mall.product.service
# Dubbo Protocol
dubbo.protocol.name
=
dubbo
## Random port
dubbo.protocol.port
=
-1
## Dubbo Registry
dubbo.registry.address
=
zookeeper://127.0.0.1:2181
## DemoService version
demo.service.version
=
1.0.0
\ No newline at end of file
product/product-application/src/main/resources/application.yaml
浏览文件 @
2523f8b6
spring
:
spring
:
application
:
name
:
product-application
# datasource
# datasource
datasource
:
datasource
:
url
:
jdbc:mysql://127.0.0.1:33061/mall_product?useSSL=false
url
:
jdbc:mysql://127.0.0.1:33061/mall_product?useSSL=false
...
@@ -6,8 +8,25 @@ spring:
...
@@ -6,8 +8,25 @@ spring:
username
:
root
username
:
root
password
:
123456
password
:
123456
# server
server
:
port
:
8081
# mybatis
# mybatis
mybatis
:
mybatis
:
config-location
:
classpath:mybatis/mybatis-config.xml
config-location
:
classpath:mybatis-config.xml
mapper-locations
:
classpath:mybatis/mapper/*.xml
mapper-locations
:
classpath:mapper/*.xml
type-aliases-package
:
cn.iocoder.mall.product.dataobject
type-aliases-package
:
cn.iocoder.mall.product.dataobject
\ No newline at end of file
# dubbo
dubbo
:
registry
:
address
:
zookeeper://127.0.0.1:2181
protocol
:
port
:
-1
name
:
dubbo
scan
:
base-packages
:
cn.iocoder.mall.product.service
demo
:
service
:
version
:
1.0.0
\ No newline at end of file
product/product-application/src/main/resources/m
ybatis/m
apper/ProductCategoryMapper.xml
→
product/product-application/src/main/resources/mapper/ProductCategoryMapper.xml
浏览文件 @
2523f8b6
File moved
product/product-application/src/main/resources/m
ybatis/m
apper/ProductSkuMapper.xml
→
product/product-application/src/main/resources/mapper/ProductSkuMapper.xml
浏览文件 @
2523f8b6
File moved
product/product-application/src/main/resources/mybatis-config.xml
0 → 100644
浏览文件 @
2523f8b6
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<settings>
<!-- 使用驼峰命名法转换字段。 -->
<setting
name=
"mapUnderscoreToCamelCase"
value=
"true"
/>
</settings>
<typeAliases>
<typeAlias
alias=
"Integer"
type=
"java.lang.Integer"
/>
<typeAlias
alias=
"Long"
type=
"java.lang.Long"
/>
<typeAlias
alias=
"HashMap"
type=
"java.util.HashMap"
/>
<typeAlias
alias=
"LinkedHashMap"
type=
"java.util.LinkedHashMap"
/>
<typeAlias
alias=
"ArrayList"
type=
"java.util.ArrayList"
/>
<typeAlias
alias=
"LinkedList"
type=
"java.util.LinkedList"
/>
</typeAliases>
</configuration>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论