Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4a9d423
commit aeb851b
Showing
27 changed files
with
1,294 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,5 +53,4 @@ logs | |
Thumbs.db | ||
Servers | ||
.metadata | ||
upload | ||
gen_code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
mica-core/src/main/java/net/dreamlu/mica/core/context/DefaultMicaContext.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
* Copyright (c) 2019-2029, Dreamlu 卢春梦 (596392912@qq.com & www.dreamlu.net). | ||
* <p> | ||
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* <p> | ||
* http://www.gnu.org/licenses/lgpl.html | ||
* <p> | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package net.dreamlu.mica.core.context; | ||
|
||
import java.util.function.Function; | ||
|
||
/** | ||
* 上下文,默认给个空的 | ||
* | ||
* @author L.cm | ||
*/ | ||
public class DefaultMicaContext implements IMicaContext { | ||
|
||
@Override | ||
public String getRequestId() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public String getTenantId() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public String getAccountId() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public String get(String ctxKey) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public <T> T get(String ctxKey, Function<String, T> function) { | ||
return null; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# mica-lite 组件 | ||
|
||
基于 VIP 版 mica-boot 抽取部分功能,使得 Spring boot 单服务可以直接使用。 | ||
|
||
## 功能 | ||
- 全局异常处理。 | ||
- 文件上传目录配置。 | ||
- 启动信息打印。 | ||
|
||
## 使用 | ||
### maven | ||
```xml | ||
<dependency> | ||
<groupId>net.dreamlu</groupId> | ||
<artifactId>mica-lite</artifactId> | ||
<version>${version}</version> | ||
</dependency> | ||
``` | ||
|
||
### gradle | ||
```groovy | ||
compile("net.dreamlu:mica-lite:${version}") | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
dependencies { | ||
api project(":mica-core") | ||
api "org.springframework.boot:spring-boot-starter-validation" | ||
implementation "org.springframework.boot:spring-boot-starter-web" | ||
implementation "org.springframework.boot:spring-boot-starter-webflux" | ||
compileOnly "org.springframework.cloud:spring-cloud-context" | ||
compileOnly "net.dreamlu:mica-auto:${micaAutoVersion}" | ||
annotationProcessor "net.dreamlu:mica-auto:${micaAutoVersion}" | ||
} |
Oops, something went wrong.