dashan
1 year ago
37 changed files with 170 additions and 153 deletions
@ -1,98 +1,49 @@ |
|||||||
# ---> Java |
###################################################################### |
||||||
# Compiled class file |
# Build Tools |
||||||
*.class |
|
||||||
# Log file |
.gradle |
||||||
*.log |
/build/ |
||||||
# BlueJ files |
!gradle/wrapper/gradle-wrapper.jar |
||||||
*.ctxt |
|
||||||
# Mobile Tools for Java (J2ME) |
|
||||||
.mtj.tmp/ |
|
||||||
# Package Files # |
|
||||||
*.jar |
|
||||||
*.war |
|
||||||
*.nar |
|
||||||
*.ear |
|
||||||
*.zip |
|
||||||
*.tar.gz |
|
||||||
*.rar |
|
||||||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml |
|
||||||
hs_err_pid* |
|
||||||
replay_pid* |
|
||||||
# ---> Maven |
|
||||||
target/ |
target/ |
||||||
pom.xml.tag |
!.mvn/wrapper/maven-wrapper.jar |
||||||
pom.xml.releaseBackup |
|
||||||
pom.xml.versionsBackup |
###################################################################### |
||||||
pom.xml.next |
# IDE |
||||||
release.properties |
|
||||||
dependency-reduced-pom.xml |
### STS ### |
||||||
buildNumber.properties |
.apt_generated |
||||||
.mvn/timing.properties |
|
||||||
# https://github.com/takari/maven-wrapper#usage-without-binary-jar |
|
||||||
.mvn/wrapper/maven-wrapper.jar |
|
||||||
# Eclipse m2e generated files |
|
||||||
# Eclipse Core |
|
||||||
.project |
|
||||||
# JDT-specific (Eclipse Java Development Tools) |
|
||||||
.classpath |
.classpath |
||||||
# ---> JetBrains |
.factorypath |
||||||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider |
.project |
||||||
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 |
.settings |
||||||
# User-specific stuff |
.springBeans |
||||||
.idea/**/workspace.xml |
|
||||||
.idea/**/tasks.xml |
### IntelliJ IDEA ### |
||||||
.idea/**/usage.statistics.xml |
.idea |
||||||
.idea/**/dictionaries |
|
||||||
.idea/**/shelf |
|
||||||
# AWS User-specific |
|
||||||
.idea/**/aws.xml |
|
||||||
# Generated files |
|
||||||
.idea/**/contentModel.xml |
|
||||||
# Sensitive or high-churn files |
|
||||||
.idea/**/dataSources/ |
|
||||||
.idea/**/dataSources.ids |
|
||||||
.idea/**/dataSources.local.xml |
|
||||||
.idea/**/sqlDataSources.xml |
|
||||||
.idea/**/dynamic.xml |
|
||||||
.idea/**/uiDesigner.xml |
|
||||||
.idea/**/dbnavigator.xml |
|
||||||
# Gradle |
|
||||||
.idea/**/gradle.xml |
|
||||||
.idea/**/libraries |
|
||||||
# Gradle and Maven with auto-import |
|
||||||
# When using Gradle or Maven with auto-import, you should exclude module files, |
|
||||||
# since they will be recreated, and may cause churn. Uncomment if using |
|
||||||
# auto-import. |
|
||||||
# .idea/artifacts |
|
||||||
# .idea/compiler.xml |
|
||||||
# .idea/jarRepositories.xml |
|
||||||
# .idea/modules.xml |
|
||||||
# .idea/*.iml |
|
||||||
# .idea/modules |
|
||||||
# *.iml |
|
||||||
# *.ipr |
|
||||||
# CMake |
|
||||||
cmake-build-*/ |
|
||||||
# Mongo Explorer plugin |
|
||||||
.idea/**/mongoSettings.xml |
|
||||||
# File-based project format |
|
||||||
*.iws |
*.iws |
||||||
# IntelliJ |
*.iml |
||||||
out/ |
*.ipr |
||||||
# mpeltonen/sbt-idea plugin |
|
||||||
.idea_modules/ |
### JRebel ### |
||||||
# JIRA plugin |
rebel.xml |
||||||
atlassian-ide-plugin.xml |
### NetBeans ### |
||||||
# Cursive Clojure plugin |
nbproject/private/ |
||||||
.idea/replstate.xml |
build/* |
||||||
# SonarLint plugin |
nbbuild/ |
||||||
.idea/sonarlint/ |
dist/ |
||||||
# Crashlytics plugin (for Android Studio and IntelliJ) |
nbdist/ |
||||||
com_crashlytics_export_strings.xml |
.nb-gradle/ |
||||||
crashlytics.properties |
|
||||||
crashlytics-build.properties |
###################################################################### |
||||||
fabric.properties |
# Others |
||||||
# Editor-based Rest Client |
*.log |
||||||
.idea/httpRequests |
*.xml.versionsBackup |
||||||
# Android studio 3.1+ serialized cache file |
*.swp |
||||||
.idea/caches/build_file_checksums.ser |
|
||||||
|
!*/build/*.java |
||||||
|
!*/build/*.html |
||||||
|
!*/build/*.xml |
||||||
|
|
||||||
|
docker/*.jar |
||||||
|
/.idea/ |
||||||
|
@ -0,0 +1,4 @@ |
|||||||
|
# BUILD |
||||||
|
- 跳过测试进行打包 |
||||||
|
|
||||||
|
```mvn clean compile package -Dmaven.test.skip=true -Pdev``` |
@ -0,0 +1,17 @@ |
|||||||
|
#!/bin/sh |
||||||
|
|
||||||
|
# 复制项目的文件到对应docker路径,便于一键生成镜像。 |
||||||
|
usage() { |
||||||
|
echo "Usage: sh copy.sh" |
||||||
|
exit 1 |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
# copy jar |
||||||
|
echo "begin copy ds-gateway " |
||||||
|
cp ../ds-gateway/target/ds-gateway.jar ./ds/gateway/jar |
||||||
|
|
||||||
|
echo "begin copy ds-miniapps " |
||||||
|
cp ../ds-modules/ds-miniapps/ds-miniapps-service/target/ds-miniapps-service.jar ./ds/modules/miniapps/jar |
||||||
|
|
||||||
|
|
@ -1,21 +0,0 @@ |
|||||||
package com.ds.gateway; |
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Value; |
|
||||||
import org.springframework.web.bind.annotation.GetMapping; |
|
||||||
import org.springframework.web.bind.annotation.RestController; |
|
||||||
|
|
||||||
/** |
|
||||||
* @author ds |
|
||||||
* @since 2023/8/8 |
|
||||||
*/ |
|
||||||
@RestController |
|
||||||
public class TestController { |
|
||||||
|
|
||||||
@Value("${testconfig}") |
|
||||||
private String test; |
|
||||||
|
|
||||||
@GetMapping("/test") |
|
||||||
public String test(){ |
|
||||||
return test; |
|
||||||
} |
|
||||||
} |
|
Loading…
Reference in new issue