Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
武汉红喜
whatsmars
提交
6a97b4c5
W
whatsmars
项目概览
武汉红喜
/
whatsmars
通知
3
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
whatsmars
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
6a97b4c5
编写于
1月 18, 2019
作者:
武汉红喜
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rename to shardingsphere
上级
a64e1304
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
21 addition
and
21 deletion
+21
-21
README.md
README.md
+1
-1
pom.xml
pom.xml
+1
-1
whatsmars-shardingsphere/README.md
whatsmars-shardingsphere/README.md
+0
-0
whatsmars-shardingsphere/pom.xml
whatsmars-shardingsphere/pom.xml
+1
-1
whatsmars-shardingsphere/src/main/java/org/hongxi/whatsmars/shardingsphere/Application.java
...java/org/hongxi/whatsmars/shardingsphere/Application.java
+2
-2
whatsmars-shardingsphere/src/main/java/org/hongxi/whatsmars/shardingsphere/entity/Order.java
...ava/org/hongxi/whatsmars/shardingsphere/entity/Order.java
+1
-1
whatsmars-shardingsphere/src/main/java/org/hongxi/whatsmars/shardingsphere/entity/OrderItem.java
...org/hongxi/whatsmars/shardingsphere/entity/OrderItem.java
+1
-1
whatsmars-shardingsphere/src/main/java/org/hongxi/whatsmars/shardingsphere/repository/OrderItemRepository.java
...tsmars/shardingsphere/repository/OrderItemRepository.java
+2
-2
whatsmars-shardingsphere/src/main/java/org/hongxi/whatsmars/shardingsphere/repository/OrderRepository.java
.../whatsmars/shardingsphere/repository/OrderRepository.java
+2
-2
whatsmars-shardingsphere/src/main/java/org/hongxi/whatsmars/shardingsphere/service/DemoService.java
.../hongxi/whatsmars/shardingsphere/service/DemoService.java
+5
-5
whatsmars-shardingsphere/src/main/resources/META-INF/mappers/OrderItemMapper.xml
...e/src/main/resources/META-INF/mappers/OrderItemMapper.xml
+2
-2
whatsmars-shardingsphere/src/main/resources/META-INF/mappers/OrderMapper.xml
...phere/src/main/resources/META-INF/mappers/OrderMapper.xml
+1
-1
whatsmars-shardingsphere/src/main/resources/META-INF/mybatis-config.xml
...dingsphere/src/main/resources/META-INF/mybatis-config.xml
+1
-1
whatsmars-shardingsphere/src/main/resources/application.yml
whatsmars-shardingsphere/src/main/resources/application.yml
+0
-0
whatsmars-shardingsphere/src/main/resources/logback.xml
whatsmars-shardingsphere/src/main/resources/logback.xml
+1
-1
whatsmars-shardingsphere/src/main/resources/manual_schema.sql
...smars-shardingsphere/src/main/resources/manual_schema.sql
+0
-0
未找到文件。
README.md
浏览文件 @
6a97b4c5
...
...
@@ -20,7 +20,7 @@ whatsmars-elasticsearch | Elasticsearch
whatsmars-mq | 消息中间件RocketMQ,Kafka等
whatsmars-redis | Redis客户端简单封装
whatsmars-rpc | Transport & RPC & Serialization
whatsmars-sharding
-jdbc
| 分布式数据库中间件
whatsmars-sharding
sphere
| 分布式数据库中间件
whatsmars-spring | Spring Framework
whatsmars-spring-boot | Spring Boot 实战
whatsmars-spring-boot-samples | Spring Boot 2+
...
...
pom.xml
浏览文件 @
6a97b4c5
...
...
@@ -27,7 +27,7 @@
<module>
whatsmars-mq
</module>
<module>
whatsmars-redis
</module>
<module>
whatsmars-spring-cloud
</module>
<module>
whatsmars-sharding
-jdbc
</module>
<module>
whatsmars-sharding
sphere
</module>
<module>
whatsmars-spring-boot-samples
</module>
<module>
whatsmars-elasticsearch
</module>
<module>
whatsmars-zk
</module>
...
...
whatsmars-sharding
-jdbc
/README.md
→
whatsmars-sharding
sphere
/README.md
浏览文件 @
6a97b4c5
文件已移动
whatsmars-sharding
-jdbc
/pom.xml
→
whatsmars-sharding
sphere
/pom.xml
浏览文件 @
6a97b4c5
...
...
@@ -10,7 +10,7 @@
<version>
Rocket.S3
</version>
</parent>
<artifactId>
whatsmars-sharding
-jdbc
</artifactId>
<artifactId>
whatsmars-sharding
sphere
</artifactId>
<packaging>
jar
</packaging>
<name>
${project.artifactId}
</name>
<description>
shardingjdbc demo
</description>
...
...
whatsmars-sharding
-jdbc/src/main/java/org/hongxi/whatsmars/shardingjdbc
/Application.java
→
whatsmars-sharding
sphere/src/main/java/org/hongxi/whatsmars/shardingsphere
/Application.java
浏览文件 @
6a97b4c5
package
org.hongxi.whatsmars.sharding
jdbc
;
package
org.hongxi.whatsmars.sharding
sphere
;
import
org.hongxi.whatsmars.sharding
jdbc
.service.DemoService
;
import
org.hongxi.whatsmars.sharding
sphere
.service.DemoService
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.context.ApplicationContext
;
...
...
whatsmars-sharding
-jdbc/src/main/java/org/hongxi/whatsmars/shardingjdbc
/entity/Order.java
→
whatsmars-sharding
sphere/src/main/java/org/hongxi/whatsmars/shardingsphere
/entity/Order.java
浏览文件 @
6a97b4c5
package
org.hongxi.whatsmars.sharding
jdbc
.entity
;
package
org.hongxi.whatsmars.sharding
sphere
.entity
;
public
final
class
Order
{
...
...
whatsmars-sharding
-jdbc/src/main/java/org/hongxi/whatsmars/shardingjdbc
/entity/OrderItem.java
→
whatsmars-sharding
sphere/src/main/java/org/hongxi/whatsmars/shardingsphere
/entity/OrderItem.java
浏览文件 @
6a97b4c5
package
org.hongxi.whatsmars.sharding
jdbc
.entity
;
package
org.hongxi.whatsmars.sharding
sphere
.entity
;
public
final
class
OrderItem
{
...
...
whatsmars-sharding
-jdbc/src/main/java/org/hongxi/whatsmars/shardingjdbc
/repository/OrderItemRepository.java
→
whatsmars-sharding
sphere/src/main/java/org/hongxi/whatsmars/shardingsphere
/repository/OrderItemRepository.java
浏览文件 @
6a97b4c5
package
org.hongxi.whatsmars.sharding
jdbc
.repository
;
package
org.hongxi.whatsmars.sharding
sphere
.repository
;
import
org.hongxi.whatsmars.sharding
jdbc
.entity.OrderItem
;
import
org.hongxi.whatsmars.sharding
sphere
.entity.OrderItem
;
import
org.apache.ibatis.annotations.Mapper
;
import
java.util.List
;
...
...
whatsmars-sharding
-jdbc/src/main/java/org/hongxi/whatsmars/shardingjdbc
/repository/OrderRepository.java
→
whatsmars-sharding
sphere/src/main/java/org/hongxi/whatsmars/shardingsphere
/repository/OrderRepository.java
浏览文件 @
6a97b4c5
package
org.hongxi.whatsmars.sharding
jdbc
.repository
;
package
org.hongxi.whatsmars.sharding
sphere
.repository
;
import
org.hongxi.whatsmars.sharding
jdbc
.entity.Order
;
import
org.hongxi.whatsmars.sharding
sphere
.entity.Order
;
import
org.apache.ibatis.annotations.Mapper
;
@Mapper
...
...
whatsmars-sharding
-jdbc/src/main/java/org/hongxi/whatsmars/shardingjdbc
/service/DemoService.java
→
whatsmars-sharding
sphere/src/main/java/org/hongxi/whatsmars/shardingsphere
/service/DemoService.java
浏览文件 @
6a97b4c5
package
org.hongxi.whatsmars.sharding
jdbc
.service
;
package
org.hongxi.whatsmars.sharding
sphere
.service
;
import
org.hongxi.whatsmars.sharding
jdbc
.entity.Order
;
import
org.hongxi.whatsmars.sharding
jdbc
.entity.OrderItem
;
import
org.hongxi.whatsmars.sharding
jdbc
.repository.OrderItemRepository
;
import
org.hongxi.whatsmars.sharding
jdbc
.repository.OrderRepository
;
import
org.hongxi.whatsmars.sharding
sphere
.entity.Order
;
import
org.hongxi.whatsmars.sharding
sphere
.entity.OrderItem
;
import
org.hongxi.whatsmars.sharding
sphere
.repository.OrderItemRepository
;
import
org.hongxi.whatsmars.sharding
sphere
.repository.OrderRepository
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
...
...
whatsmars-sharding
-jdbc
/src/main/resources/META-INF/mappers/OrderItemMapper.xml
→
whatsmars-sharding
sphere
/src/main/resources/META-INF/mappers/OrderItemMapper.xml
浏览文件 @
6a97b4c5
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"org.hongxi.whatsmars.sharding
jdbc
.repository.OrderItemRepository"
>
<resultMap
id=
"baseResultMap"
type=
"org.hongxi.whatsmars.sharding
jdbc
.entity.OrderItem"
>
<mapper
namespace=
"org.hongxi.whatsmars.sharding
sphere
.repository.OrderItemRepository"
>
<resultMap
id=
"baseResultMap"
type=
"org.hongxi.whatsmars.sharding
sphere
.entity.OrderItem"
>
<result
column=
"order_item_id"
property=
"orderItemId"
jdbcType=
"INTEGER"
/>
<result
column=
"order_id"
property=
"orderId"
jdbcType=
"INTEGER"
/>
<result
column=
"user_id"
property=
"userId"
jdbcType=
"INTEGER"
/>
...
...
whatsmars-sharding
-jdbc
/src/main/resources/META-INF/mappers/OrderMapper.xml
→
whatsmars-sharding
sphere
/src/main/resources/META-INF/mappers/OrderMapper.xml
浏览文件 @
6a97b4c5
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"org.hongxi.whatsmars.sharding
jdbc
.repository.OrderRepository"
>
<mapper
namespace=
"org.hongxi.whatsmars.sharding
sphere
.repository.OrderRepository"
>
<update
id=
"createIfNotExistsTable"
>
CREATE TABLE IF NOT EXISTS t_order (order_id BIGINT AUTO_INCREMENT, user_id INT NOT NULL, status VARCHAR(50), PRIMARY KEY (order_id));
</update>
...
...
whatsmars-sharding
-jdbc
/src/main/resources/META-INF/mybatis-config.xml
→
whatsmars-sharding
sphere
/src/main/resources/META-INF/mybatis-config.xml
浏览文件 @
6a97b4c5
...
...
@@ -7,7 +7,7 @@
<!--<setting name="logImpl" value="STDOUT_LOGGING" />-->
<!--</settings>-->
<typeAliases>
<package
name=
"org.hongxi.whatsmars.sharding
jdbc
.entity"
/>
<package
name=
"org.hongxi.whatsmars.sharding
sphere
.entity"
/>
</typeAliases>
<mappers>
<mapper
resource=
"META-INF/mappers/OrderMapper.xml"
/>
...
...
whatsmars-sharding
-jdbc
/src/main/resources/application.yml
→
whatsmars-sharding
sphere
/src/main/resources/application.yml
浏览文件 @
6a97b4c5
文件已移动
whatsmars-sharding
-jdbc
/src/main/resources/logback.xml
→
whatsmars-sharding
sphere
/src/main/resources/logback.xml
浏览文件 @
6a97b4c5
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<property
name=
"log.context.name"
value=
"whatsmars-sharding
-jdbc
"
/>
<property
name=
"log.context.name"
value=
"whatsmars-sharding
sphere
"
/>
<property
name=
"log.charset"
value=
"UTF-8"
/>
<property
name=
"log.pattern"
value=
"[%-5level] %date --%thread-- [%logger] %msg %n"
/>
...
...
whatsmars-sharding
-jdbc
/src/main/resources/manual_schema.sql
→
whatsmars-sharding
sphere
/src/main/resources/manual_schema.sql
浏览文件 @
6a97b4c5
文件已移动
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录