Skip to content

Commit 3cc6e78

Browse files
committed
project restart
1 parent 052647e commit 3cc6e78

File tree

10 files changed

+222
-43
lines changed

10 files changed

+222
-43
lines changed

README.md

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# ProjectName
44

5-
ProjectName and Description
5+
luna-commons
66

77
<!-- PROJECT SHIELDS -->
88

@@ -45,30 +45,23 @@ ProjectName and Description
4545
- [开发前的配置要求](#开发前的配置要求)
4646
- [安装步骤](#安装步骤)
4747
- [文件目录说明](#文件目录说明)
48-
- [开发的架构](#开发的架构)
4948
- [部署](#部署)
5049
- [使用到的框架](#使用到的框架)
5150
- [贡献者](#贡献者)
5251
- [如何参与开源项目](#如何参与开源项目)
53-
- [版本控制](#版本控制)
5452
- [作者](#作者)
5553
- [鸣谢](#鸣谢)
5654

5755
### 上手指南
5856

5957

60-
61-
62-
63-
###### 开发前的配置要求
64-
65-
1. xxxxx x.x.x
66-
2. xxxxx x.x.x
67-
6858
###### **安装步骤**
6959

70-
1. Get a free API Key at [https://example.com](https://example.com)
71-
2. Clone the repo
60+
1. Get a free API Key at [https://ai.baidu.com/sdk#ocr](https://ai.baidu.com/sdk#ocr)
61+
2. Get a free API Key at [https://cloud.tencent.com](https://cloud.tencent.com)
62+
3. Get a free API Key at [https://account.aliyun.com](https://account.aliyun.com)
63+
4. 找到config目录下的xxxConfigValue,application.properties
64+
5. Clone the repo
7265

7366
```sh
7467
git clone https://github.com/czy1024/luna-commons.git
@@ -189,11 +182,9 @@ email Keyluna@126.com &ensp; qq:1173288254
189182
### 鸣谢[]()
190183

191184

192-
- [GitHub Emoji Cheat Sheet](https://www.webpagefx.com/tools/emoji-cheat-sheet)
193-
- [Img Shields](https://shields.io)
194-
- [Choose an Open Source License](https://choosealicense.com)
195-
- [GitHub Pages](https://pages.github.com)
196-
- [Animate.css](https://daneden.github.io/animate.css)
185+
- [ffmpeg]()
186+
- [Javacv]()
187+
197188

198189
<!-- links -->
199190
[your-project-path]:czy1024/luna-commons

luna-commons-ali/README.md

Lines changed: 189 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,189 @@
1+
2+
3+
# ProjectName
4+
5+
luna-commons-ali
6+
7+
<!-- PROJECT SHIELDS -->
8+
9+
[![Contributors][contributors-shield]][contributors-url]
10+
[![Forks][forks-shield]][forks-url]
11+
[![Stargazers][stars-shield]][stars-url]
12+
[![Issues][issues-shield]][issues-url]
13+
[![MIT License][license-shield]][license-url]
14+
[![LinkedIn][linkedin-shield]][linkedin-url]
15+
16+
<!-- PROJECT LOGO -->
17+
<br />
18+
19+
<p align="center">
20+
<a href="https://github.com/czy1024/luna-commons/">
21+
<img src="images/logo.png" alt="Logo" width="80" height="80">
22+
</a>
23+
24+
<h3 align="center">"完美的"开发工具</h3>
25+
<p align="center">
26+
市场上许多界面和工具的集合,例如ftp,httpd等文件与工具操作,包括但不限于图像处理、人脸识别等的api。让你免去寻找工具的烦恼
27+
<br />
28+
<a href="https://github.com/czy1024/luna-commons"><strong>探索本项目的文档 »</strong></a>
29+
<br />
30+
<br />
31+
<a href="">查看Demo</a>
32+
·
33+
<a href="">报告Bug</a>
34+
·
35+
<a href="https://github.com/czy1024/luna-commons/issues">提出新特性</a>
36+
</p>
37+
38+
</p>
39+
40+
41+
42+
## 目录
43+
44+
- [上手指南](#上手指南)
45+
- [开发前的配置要求](#开发前的配置要求)
46+
- [安装步骤](#安装步骤)
47+
- [文件目录说明](#文件目录说明)
48+
- [部署](#部署)
49+
50+
51+
### 上手指南
52+
53+
54+
###### **安装步骤**
55+
56+
1. Get a free API Key at [https://account.aliyun.com](https://account.aliyun.com)
57+
2. 找到config目录下的xxxConfigValue,application.properties
58+
3. Clone the repo
59+
60+
```sh
61+
git clone https://github.com/czy1024/luna-commons.git
62+
```
63+
64+
引入项目依赖
65+
66+
```xml
67+
<repositories>
68+
<repository>
69+
<id>luna-commons-mvn-repo</id>
70+
<url>https://raw.github.com/czy1024/luna-commons/mvn-repo-luna-commons-ali/</url>
71+
<snapshots>
72+
<enabled>true</enabled>
73+
<updatePolicy>always</updatePolicy>
74+
</snapshots>
75+
</repository>
76+
</repositories>
77+
78+
79+
<dependency>
80+
<groupId>com.luna</groupId>
81+
<artifactId>luna-commons-ali</artifactId>
82+
<version>1.0-SNAPSHOT</version>
83+
</dependency>
84+
```
85+
在配置文件application.properties加入可选配置
86+
87+
```text#阿里oss服务器
88+
luna.ali.ossId=xxx
89+
luna.ali.ossKey=xxx
90+
luna.ali.bucketName=xxx
91+
luna.ali.host=xxx
92+
# 支付宝
93+
# 应用ID,您的APPID,收款账号既是您的APPID对应支付宝账号
94+
luna.alipay.appId=xxx
95+
# 商户私钥,您的PKCS8格式RSA2私钥
96+
luna.alipay.privateKey=xxx
97+
# 支付宝公钥,查看地址:https://openhome.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
98+
luna.alipay.publicKey=xxx
99+
# 服务器异步通知页面路径需http://格式的完整路径,不能加?id=123这类自定义参数
100+
luna.alipay.notifyUrl=xxx
101+
# 页面跳转同步通知页面路径 需http://格式的完整路径,不能加?id=123这类自定义参数
102+
luna.alipay.returnUrl=xxx
103+
# 签名方式
104+
luna.alipay.signType=RSA2
105+
# 支付宝网关
106+
luna.alipay.gatewayUrl=https://openapi.alipaydev.com/gateway.do
107+
```
108+
109+
引用示例
110+
111+
```java
112+
package com.luna.springdemo;
113+
114+
115+
import com.luna.springdemo.baidu.BaiduConfig;
116+
import org.junit.Test;
117+
import org.junit.runner.RunWith;
118+
import org.springframework.boot.test.context.SpringBootTest;
119+
import org.springframework.test.context.junit4.SpringRunner;
120+
121+
import javax.annotation.Resource;
122+
import java.io.IOException;
123+
124+
/**
125+
* @author Luna@win10
126+
* @date 2020/5/6 12:46
127+
*/
128+
@SpringBootTest
129+
@RunWith(SpringRunner.class)
130+
public class BaiduApiTest {
131+
132+
@Resource
133+
BaiduConfig baiduConfig;
134+
135+
@Test
136+
public void aTest() throws IOException {
137+
System.out.println(baiduConfig.getAppId());
138+
}
139+
140+
}
141+
142+
```
143+
144+
结果
145+
146+
147+
### 文件目录说明
148+
eg:
149+
150+
```
151+
luna-commons-ali
152+
├── README.md
153+
├── src
154+
│ ├── /config/
155+
│ ├── /entity/
156+
│ ├── /oss/
157+
│ ├── /pay/
158+
│──── /resource/
159+
└── pom.xml
160+
161+
```
162+
163+
### 部署
164+
165+
暂无
166+
167+
168+
169+
170+
171+
172+
<!-- links -->
173+
[your-project-path]:czy1024/luna-commons
174+
[contributors-shield]: https://img.shields.io/github/contributors/czy1024/luna-commons.svg?style=flat-square
175+
[contributors-url]: https://github.com/czy1024/luna-commons/graphs/contributors
176+
[forks-shield]: https://img.shields.io/github/forks/czy1024/luna-commons.svg?style=flat-square
177+
[forks-url]: https://github.com/czy1024/luna-commons/network/members
178+
[stars-shield]: https://img.shields.io/github/stars/czy1024/luna-commons.svg?style=flat-square
179+
[stars-url]: https://github.com/czy1024/luna-commons/stargazers
180+
[issues-shield]: https://img.shields.io/github/issues/czy1024/luna-commons.svg?style=flat-square
181+
[issues-url]: https://img.shields.io/github/issues/czy1024/luna-commons.svg
182+
[license-shield]: https://img.shields.io/github/license/czy1024/luna-commons.svg?style=flat-square
183+
[license-url]: https://github.com/czy1024/luna-commons/blob/master/LICENSE.txt
184+
[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=flat-square&logo=linkedin&colorB=555
185+
[linkedin-url]: https://linkedin.com/in/shaojintian
186+
187+
188+
189+

luna-commons-ali/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<repositories>
1515
<repository>
16-
<id>luna-commons-mvn-repo</id>
16+
<id>luna-commons-mvn-repo-ali</id>
1717
<url>https://raw.github.com/czy1024/luna-commons/mvn-repo-luna-commons-ali/</url>
1818
<snapshots>
1919
<enabled>true</enabled>

luna-commons-api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<repositories>
1515
<repository>
16-
<id>luna-commons-mvn-repo</id>
16+
<id>luna-commons-mvn-repo-api</id>
1717
<url>https://raw.github.com/czy1024/luna-commons/mvn-repo-luna-commons-api/</url>
1818
<snapshots>
1919
<enabled>true</enabled>

luna-commons-baidu/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<repositories>
1515
<repository>
16-
<id>luna-commons-mvn-repo</id>
16+
<id>luna-commons-mvn-repo-baidu</id>
1717
<url>https://raw.github.com/czy1024/luna-commons/mvn-repo-luna-commons-baidu/</url>
1818
<snapshots>
1919
<enabled>true</enabled>

luna-commons-common/pom.xml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<repositories>
1515
<repository>
16-
<id>luna-commons-mvn-repo</id>
16+
<id>luna-commons-mvn-repo-common</id>
1717
<url>https://raw.github.com/czy1024/luna-commons/mvn-repo-luna-commons-common/</url>
1818
<snapshots>
1919
<enabled>true</enabled>
@@ -23,6 +23,16 @@
2323
</repositories>
2424

2525
<dependencies>
26+
<!-- Mysql驱动包 -->
27+
<dependency>
28+
<groupId>mysql</groupId>
29+
<artifactId>mysql-connector-java</artifactId>
30+
</dependency>
31+
<!-- mybatis整合spring -->
32+
<dependency>
33+
<groupId>org.mybatis.spring.boot</groupId>
34+
<artifactId>mybatis-spring-boot-starter</artifactId>
35+
</dependency>
2636
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-text -->
2737
<dependency>
2838
<groupId>org.apache.commons</groupId>

luna-commons-media/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<repositories>
1515
<repository>
16-
<id>luna-commons-mvn-repo</id>
16+
<id>luna-commons-mvn-repo-media</id>
1717
<url>https://raw.github.com/czy1024/luna-commons/mvn-repo-luna-commons-media/</url>
1818
<snapshots>
1919
<enabled>true</enabled>

luna-commons-message/pom.xml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<repositories>
1515
<repository>
16-
<id>luna-commons-mvn-repo</id>
16+
<id>luna-commons-mvn-repo-message</id>
1717
<url>https://raw.github.com/czy1024/luna-commons/mvn-repo-luna-commons-message/</url>
1818
<snapshots>
1919
<enabled>true</enabled>
@@ -39,17 +39,6 @@
3939
<groupId>org.springframework.boot</groupId>
4040
<artifactId>spring-boot-starter-mail</artifactId>
4141
</dependency>
42-
43-
<!-- Mysql驱动包 -->
44-
<dependency>
45-
<groupId>mysql</groupId>
46-
<artifactId>mysql-connector-java</artifactId>
47-
</dependency>
48-
49-
<dependency>
50-
<groupId>org.mybatis.spring.boot</groupId>
51-
<artifactId>mybatis-spring-boot-starter</artifactId>
52-
</dependency>
5342
</dependencies>
5443

5544
<distributionManagement>

luna-commons-tencent/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<repositories>
1515
<repository>
16-
<id>luna-commons-mvn-repo</id>
16+
<id>luna-commons-mvn-repo-tencent</id>
1717
<url>https://raw.github.com/czy1024/luna-commons/mvn-repo-luna-commons-tencent/</url>
1818
<snapshots>
1919
<enabled>true</enabled>

pom.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,14 @@
4949
<dependency>
5050
<groupId>mysql</groupId>
5151
<artifactId>mysql-connector-java</artifactId>
52-
<version>8.0.19</version>
52+
<version>8.0.15</version>
53+
</dependency>
54+
<!-- mybatis整合spring -->
55+
<dependency>
56+
<groupId>org.mybatis.spring.boot</groupId>
57+
<artifactId>mybatis-spring-boot-starter</artifactId>
58+
<version>2.1.1</version>
5359
</dependency>
54-
5560
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-text -->
5661
<dependency>
5762
<groupId>org.apache.commons</groupId>
@@ -112,11 +117,6 @@
112117
<artifactId>fastjson</artifactId>
113118
<version>1.2.72</version>
114119
</dependency>
115-
<dependency>
116-
<groupId>org.mybatis.spring.boot</groupId>
117-
<artifactId>mybatis-spring-boot-starter</artifactId>
118-
<version>2.1.1</version>
119-
</dependency>
120120
<dependency>
121121
<groupId>junit</groupId>
122122
<artifactId>junit</artifactId>

0 commit comments

Comments
 (0)