diff --git a/README.md b/README.md index 9fd7779..ef55cc4 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Build Status](https://travis-ci.org/alipay/jarslink.svg?branch=master)](https://travis-ci.org/alipay/jarslink) [![Coverage Status](https://coveralls.io/repos/github/alipay/jarslink/badge.svg?branch=master)](https://coveralls.io/github/alipay/jarslink) ![license](https://img.shields.io/badge/license-Apache--2.0-green.svg) -![maven](https://img.shields.io/nexus/r/https/oss.sonatype.org/com.alipay.sofa/sofa-jarslink.svg) +![maven](https://img.shields.io/nexus/s/https/oss.sonatype.org/com.alipay.sofa/sofa-jarslink.svg) Jarslink 2.0 是 [SOFABoot](https://github.com/alipay/sofa-boot) 官方基于 [SOFAArk](https://github.com/alipay/sofa-ark) 开发的功能插件,负责管理多应用在 SOFAArk 容器之上的合并部署,具备如下特性: diff --git a/sofa-jarslink-samples/README.md b/sofa-jarslink-samples/README.md new file mode 100644 index 0000000..91941f0 --- /dev/null +++ b/sofa-jarslink-samples/README.md @@ -0,0 +1,20 @@ +## 简介 +SOFA-Jarslink 提供了三个样例工程来演示 Jarslink2.0 使用,工程目录组织如下: +```text +│ +├── spring-boot-transform-sample +│ +├── biz-jvm-invocation-sample +│ +└── biz-health-check-sample + +``` + +### spring-boot-transform-sample +该工程演示了如何快速的将 Spring Boot 工程改造成 SOFABoot 工程。 + +### biz-jvm-invocation-sample +该工程演示了如何使用 JVM 服务实现跨应用通信。 + +### biz-health-check-sample +该工程演示了如何集成 SOFABoot 健康检查能力。 \ No newline at end of file diff --git a/sofa-jarslink-samples/biz-health-check-sample/README.md b/sofa-jarslink-samples/biz-health-check-sample/README.md new file mode 100644 index 0000000..9ab54db --- /dev/null +++ b/sofa-jarslink-samples/biz-health-check-sample/README.md @@ -0,0 +1 @@ +详细参考[官方文档链接](http://www.sofastack.tech/sofa-boot/docs/sofa-jarslink-jarslink-health-demo) \ No newline at end of file diff --git a/sofa-jarslink-samples/biz-health-check-sample/app-one/pom.xml b/sofa-jarslink-samples/biz-health-check-sample/app-one/pom.xml new file mode 100644 index 0000000..ad5c396 --- /dev/null +++ b/sofa-jarslink-samples/biz-health-check-sample/app-one/pom.xml @@ -0,0 +1,109 @@ + + + + com.alipay.sofa + sofaboot-dependencies + 2.5.0-SNAPSHOT + + 4.0.0 + + me.qlong.tech + app-one + 1.0.0 + + + + + com.alipay.sofa + sofa-jarslink-ark-starter + ark-plugin + 2.0.0-SNAPSHOT + + + + + com.alipay.sofa + runtime-sofa-boot-starter + ark-plugin + + + com.alipay.sofa + runtime-sofa-boot-starter + + + + + com.alipay.sofa + sofa-ark-springboot-starter + + + + + org.springframework.boot + spring-boot-starter-web + + + + + com.alipay.sofa + healthcheck-sofa-boot-starter + + + + + + + default + + true + + + + + true + + snapshot + https://oss.sonatype.org/content/repositories/snapshots + + + + + + true + + snapshot + https://oss.sonatype.org/content/repositories/snapshots + + + + + + + + + com.alipay.sofa + sofa-ark-maven-plugin + + + + + repackage + + + + + target + + + executable-ark + + + + + + + + + \ No newline at end of file diff --git a/sofa-jarslink-samples/biz-health-check-sample/app-one/src/main/java/me/qlong/AppOneApplication.java b/sofa-jarslink-samples/biz-health-check-sample/app-one/src/main/java/me/qlong/AppOneApplication.java new file mode 100644 index 0000000..789190a --- /dev/null +++ b/sofa-jarslink-samples/biz-health-check-sample/app-one/src/main/java/me/qlong/AppOneApplication.java @@ -0,0 +1,31 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 me.qlong; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +/** + * @author qilong.zql 18/6/12-下午8:48 + */ +@SpringBootApplication +public class AppOneApplication { + public static void main(String[] args) { + SpringApplication springApplication = new SpringApplication(AppOneApplication.class); + springApplication.run(args); + } +} \ No newline at end of file diff --git a/sofa-jarslink-samples/biz-health-check-sample/app-one/src/main/resources/config/application.properties b/sofa-jarslink-samples/biz-health-check-sample/app-one/src/main/resources/config/application.properties new file mode 100644 index 0000000..5db7419 --- /dev/null +++ b/sofa-jarslink-samples/biz-health-check-sample/app-one/src/main/resources/config/application.properties @@ -0,0 +1,6 @@ +# can't be deleted +spring.application.name=appOne + +logging.path=./logs + +com.alipay.sofa.boot.skipJvmReferenceHealthCheck=true \ No newline at end of file diff --git a/sofa-jarslink-samples/biz-health-check-sample/app-two/pom.xml b/sofa-jarslink-samples/biz-health-check-sample/app-two/pom.xml new file mode 100644 index 0000000..467e3b5 --- /dev/null +++ b/sofa-jarslink-samples/biz-health-check-sample/app-two/pom.xml @@ -0,0 +1,94 @@ + + + + com.alipay.sofa + sofaboot-dependencies + 2.5.0-SNAPSHOT + + 4.0.0 + + me.qlong.tech + app-two + 1.0.0 + + + + + com.alipay.sofa + runtime-sofa-boot-starter + ark-plugin + + + com.alipay.sofa + runtime-sofa-boot-starter + + + + + com.alipay.sofa + healthcheck-sofa-boot-starter + + + org.springframework.boot + spring-boot-starter-web + + + + + + + + default + + true + + + + + true + + snapshot + https://oss.sonatype.org/content/repositories/snapshots + + + + + + true + + snapshot + https://oss.sonatype.org/content/repositories/snapshots + + + + + + + + + com.alipay.sofa + sofa-ark-maven-plugin + + + + + repackage + + + + true + + target + + + executable-ark + + + + + + + + \ No newline at end of file diff --git a/sofa-jarslink-samples/biz-health-check-sample/app-two/src/main/java/me/qlong/tech/service/AppTwoApplication.java b/sofa-jarslink-samples/biz-health-check-sample/app-two/src/main/java/me/qlong/tech/service/AppTwoApplication.java new file mode 100644 index 0000000..14cbd76 --- /dev/null +++ b/sofa-jarslink-samples/biz-health-check-sample/app-two/src/main/java/me/qlong/tech/service/AppTwoApplication.java @@ -0,0 +1,31 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 me.qlong.tech.service; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +/** + * @author qilong.zql 18/6/13-上午11:34 + */ +@SpringBootApplication +public class AppTwoApplication { + public static void main(String[] args) { + SpringApplication springApplication = new SpringApplication(AppTwoApplication.class); + springApplication.run(args); + } +} \ No newline at end of file diff --git a/sofa-jarslink-samples/biz-health-check-sample/app-two/src/main/resources/config/application.properties b/sofa-jarslink-samples/biz-health-check-sample/app-two/src/main/resources/config/application.properties new file mode 100644 index 0000000..fe0eb52 --- /dev/null +++ b/sofa-jarslink-samples/biz-health-check-sample/app-two/src/main/resources/config/application.properties @@ -0,0 +1,4 @@ +# can't be deleted +spring.application.name=appTwo + +logging.path=./logs diff --git a/sofa-jarslink-samples/biz-health-check-sample/pom.xml b/sofa-jarslink-samples/biz-health-check-sample/pom.xml new file mode 100644 index 0000000..1394c73 --- /dev/null +++ b/sofa-jarslink-samples/biz-health-check-sample/pom.xml @@ -0,0 +1,39 @@ + + + 4.0.0 + + biz-health-check-sample + pom + me.qlong.tech + 1.0.0 + + + + default + + true + + + + + true + + snapshot + https://oss.sonatype.org/content/repositories/snapshots + + + + + + true + + snapshot + https://oss.sonatype.org/content/repositories/snapshots + + + + + + \ No newline at end of file diff --git a/sofa-jarslink-samples/biz-jvm-invocation-sample/README.md b/sofa-jarslink-samples/biz-jvm-invocation-sample/README.md new file mode 100644 index 0000000..edc8534 --- /dev/null +++ b/sofa-jarslink-samples/biz-jvm-invocation-sample/README.md @@ -0,0 +1 @@ +详细参考[官方文档链接](http://www.sofastack.tech/sofa-boot/docs/sofa-jarslink-jarslink-invocation-demo) \ No newline at end of file diff --git a/sofa-jarslink-samples/biz-jvm-invocation-sample/app-one/pom.xml b/sofa-jarslink-samples/biz-jvm-invocation-sample/app-one/pom.xml new file mode 100644 index 0000000..993f1e5 --- /dev/null +++ b/sofa-jarslink-samples/biz-jvm-invocation-sample/app-one/pom.xml @@ -0,0 +1,110 @@ + + + + com.alipay.sofa + sofaboot-dependencies + 2.5.0-SNAPSHOT + + 4.0.0 + + me.qlong.tech + app-one + 1.0.0 + + + + + com.alipay.sofa + sofa-jarslink-ark-starter + ark-plugin + 2.0.0-SNAPSHOT + + + + + com.alipay.sofa + runtime-sofa-boot-starter + ark-plugin + + + com.alipay.sofa + runtime-sofa-boot-starter + + + + + com.alipay.sofa + sofa-ark-springboot-starter + + + + + org.springframework.boot + spring-boot-starter-web + + + + + me.qlong.tech + facade + 1.0.0 + + + + + + + default + + true + + + + + true + + snapshot + https://oss.sonatype.org/content/repositories/snapshots + + + + + + true + + snapshot + https://oss.sonatype.org/content/repositories/snapshots + + + + + + + + + com.alipay.sofa + sofa-ark-maven-plugin + + + + + repackage + + + + + target + + + executable-ark + + + + + + + + + \ No newline at end of file diff --git a/sofa-jarslink-samples/biz-jvm-invocation-sample/app-one/src/main/java/me/qlong/AppOneApplication.java b/sofa-jarslink-samples/biz-jvm-invocation-sample/app-one/src/main/java/me/qlong/AppOneApplication.java new file mode 100644 index 0000000..789190a --- /dev/null +++ b/sofa-jarslink-samples/biz-jvm-invocation-sample/app-one/src/main/java/me/qlong/AppOneApplication.java @@ -0,0 +1,31 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 me.qlong; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +/** + * @author qilong.zql 18/6/12-下午8:48 + */ +@SpringBootApplication +public class AppOneApplication { + public static void main(String[] args) { + SpringApplication springApplication = new SpringApplication(AppOneApplication.class); + springApplication.run(args); + } +} \ No newline at end of file diff --git a/sofa-jarslink-samples/biz-jvm-invocation-sample/app-one/src/main/java/me/qlong/controller/HelloController.java b/sofa-jarslink-samples/biz-jvm-invocation-sample/app-one/src/main/java/me/qlong/controller/HelloController.java new file mode 100644 index 0000000..a451e32 --- /dev/null +++ b/sofa-jarslink-samples/biz-jvm-invocation-sample/app-one/src/main/java/me/qlong/controller/HelloController.java @@ -0,0 +1,39 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 me.qlong.controller; + +import com.alipay.sofa.runtime.api.annotation.SofaReference; +import me.qlong.tech.service.SampleJvmService; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + + +/** + * @author qilong.zql 18/6/13-上午6:56 + */ +@RestController +public class HelloController { + + @SofaReference + private SampleJvmService sampleJvmService; + + @RequestMapping("/hello") + public String hello() { + return sampleJvmService.service(); + } + +} \ No newline at end of file diff --git a/sofa-jarslink-samples/biz-jvm-invocation-sample/app-one/src/main/resources/config/application.properties b/sofa-jarslink-samples/biz-jvm-invocation-sample/app-one/src/main/resources/config/application.properties new file mode 100644 index 0000000..5db7419 --- /dev/null +++ b/sofa-jarslink-samples/biz-jvm-invocation-sample/app-one/src/main/resources/config/application.properties @@ -0,0 +1,6 @@ +# can't be deleted +spring.application.name=appOne + +logging.path=./logs + +com.alipay.sofa.boot.skipJvmReferenceHealthCheck=true \ No newline at end of file diff --git a/sofa-jarslink-samples/biz-jvm-invocation-sample/app-two/pom.xml b/sofa-jarslink-samples/biz-jvm-invocation-sample/app-two/pom.xml new file mode 100644 index 0000000..e6410b6 --- /dev/null +++ b/sofa-jarslink-samples/biz-jvm-invocation-sample/app-two/pom.xml @@ -0,0 +1,84 @@ + + + + com.alipay.sofa + sofaboot-dependencies + 2.5.0-SNAPSHOT + + 4.0.0 + + me.qlong.tech + app-two + 1.0.0 + + + + + com.alipay.sofa + runtime-sofa-boot-starter + + + + + me.qlong.tech + facade + 1.0.0 + + + + + + default + + true + + + + + true + + snapshot + https://oss.sonatype.org/content/repositories/snapshots + + + + + + true + + snapshot + https://oss.sonatype.org/content/repositories/snapshots + + + + + + + + + com.alipay.sofa + sofa-ark-maven-plugin + + + + + repackage + + + + true + + target + + + executable-ark + + + + + + + + \ No newline at end of file diff --git a/sofa-jarslink-samples/biz-jvm-invocation-sample/app-two/src/main/java/me/qlong/tech/service/AppTwoApplication.java b/sofa-jarslink-samples/biz-jvm-invocation-sample/app-two/src/main/java/me/qlong/tech/service/AppTwoApplication.java new file mode 100644 index 0000000..14cbd76 --- /dev/null +++ b/sofa-jarslink-samples/biz-jvm-invocation-sample/app-two/src/main/java/me/qlong/tech/service/AppTwoApplication.java @@ -0,0 +1,31 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 me.qlong.tech.service; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +/** + * @author qilong.zql 18/6/13-上午11:34 + */ +@SpringBootApplication +public class AppTwoApplication { + public static void main(String[] args) { + SpringApplication springApplication = new SpringApplication(AppTwoApplication.class); + springApplication.run(args); + } +} \ No newline at end of file diff --git a/sofa-jarslink-samples/biz-jvm-invocation-sample/app-two/src/main/java/me/qlong/tech/service/impl/AppTwoSampleService.java b/sofa-jarslink-samples/biz-jvm-invocation-sample/app-two/src/main/java/me/qlong/tech/service/impl/AppTwoSampleService.java new file mode 100644 index 0000000..30e3db2 --- /dev/null +++ b/sofa-jarslink-samples/biz-jvm-invocation-sample/app-two/src/main/java/me/qlong/tech/service/impl/AppTwoSampleService.java @@ -0,0 +1,32 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 me.qlong.tech.service.impl; + +import com.alipay.sofa.runtime.api.annotation.SofaService; +import me.qlong.tech.service.SampleJvmService; +import org.springframework.stereotype.Component; + +/** + * @author qilong.zql 18/6/13-上午11:17 + */ +@SofaService +@Component +public class AppTwoSampleService implements SampleJvmService{ + public String service() { + return "App Two"; + } +} \ No newline at end of file diff --git a/sofa-jarslink-samples/biz-jvm-invocation-sample/app-two/src/main/resources/config/application.properties b/sofa-jarslink-samples/biz-jvm-invocation-sample/app-two/src/main/resources/config/application.properties new file mode 100644 index 0000000..fe0eb52 --- /dev/null +++ b/sofa-jarslink-samples/biz-jvm-invocation-sample/app-two/src/main/resources/config/application.properties @@ -0,0 +1,4 @@ +# can't be deleted +spring.application.name=appTwo + +logging.path=./logs diff --git a/sofa-jarslink-samples/biz-jvm-invocation-sample/facade/pom.xml b/sofa-jarslink-samples/biz-jvm-invocation-sample/facade/pom.xml new file mode 100644 index 0000000..75ac015 --- /dev/null +++ b/sofa-jarslink-samples/biz-jvm-invocation-sample/facade/pom.xml @@ -0,0 +1,12 @@ + + + 4.0.0 + + facade + me.qlong.tech + 1.0.0 + + + \ No newline at end of file diff --git a/sofa-jarslink-samples/biz-jvm-invocation-sample/facade/src/main/java/me/qlong/tech/service/SampleJvmService.java b/sofa-jarslink-samples/biz-jvm-invocation-sample/facade/src/main/java/me/qlong/tech/service/SampleJvmService.java new file mode 100644 index 0000000..e958b94 --- /dev/null +++ b/sofa-jarslink-samples/biz-jvm-invocation-sample/facade/src/main/java/me/qlong/tech/service/SampleJvmService.java @@ -0,0 +1,24 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 me.qlong.tech.service; + +/** + * @author qilong.zql 18/6/12-下午8:17 + */ +public interface SampleJvmService { + String service(); +} \ No newline at end of file diff --git a/sofa-jarslink-samples/biz-jvm-invocation-sample/pom.xml b/sofa-jarslink-samples/biz-jvm-invocation-sample/pom.xml new file mode 100644 index 0000000..258a751 --- /dev/null +++ b/sofa-jarslink-samples/biz-jvm-invocation-sample/pom.xml @@ -0,0 +1,39 @@ + + + 4.0.0 + + me.qlong.tech + biz-jvm-invocation-sample + pom + 1.0.0 + + + + default + + true + + + + + true + + snapshot + https://oss.sonatype.org/content/repositories/snapshots + + + + + + true + + snapshot + https://oss.sonatype.org/content/repositories/snapshots + + + + + + \ No newline at end of file diff --git a/sofa-jarslink-samples/pom.xml b/sofa-jarslink-samples/pom.xml new file mode 100644 index 0000000..1189317 --- /dev/null +++ b/sofa-jarslink-samples/pom.xml @@ -0,0 +1,12 @@ + + + 4.0.0 + + me.qlong.tech + jarslink-sample + pom + 1.0.0 + + \ No newline at end of file diff --git a/sofa-jarslink-samples/spring-boot-transform-sample/README.md b/sofa-jarslink-samples/spring-boot-transform-sample/README.md new file mode 100644 index 0000000..71187ba --- /dev/null +++ b/sofa-jarslink-samples/spring-boot-transform-sample/README.md @@ -0,0 +1 @@ +详细参考[官方文档链接](http://www.sofastack.tech/sofa-boot/docs/sofa-jarslink-jarslink-app-demo) \ No newline at end of file diff --git a/sofa-jarslink-samples/spring-boot-transform-sample/pom.xml b/sofa-jarslink-samples/spring-boot-transform-sample/pom.xml new file mode 100644 index 0000000..844a948 --- /dev/null +++ b/sofa-jarslink-samples/spring-boot-transform-sample/pom.xml @@ -0,0 +1,86 @@ + + + + + com.alipay.sofa + sofaboot-dependencies + 2.5.0-SNAPSHOT + + + 4.0.0 + + me.qlong.tech + spring-boot-transform-sample + 1.0.0 + + + + + com.alipay.sofa + sofa-jarslink-ark-starter + ark-plugin + 2.0.0-SNAPSHOT + + + + + org.springframework.boot + spring-boot-starter-web + + + + + + + com.alipay.sofa + sofa-ark-maven-plugin + + + + + repackage + + + + + ./target + + + executable-ark + + + + + + + + + + default + + true + + + + + true + + snapshot + https://oss.sonatype.org/content/repositories/snapshots + + + + + + true + + snapshot + https://oss.sonatype.org/content/repositories/snapshots + + + + + + \ No newline at end of file diff --git a/sofa-jarslink-samples/spring-boot-transform-sample/src/main/java/me/qlong/tech/sample/DemoApplication.java b/sofa-jarslink-samples/spring-boot-transform-sample/src/main/java/me/qlong/tech/sample/DemoApplication.java new file mode 100644 index 0000000..b6ca922 --- /dev/null +++ b/sofa-jarslink-samples/spring-boot-transform-sample/src/main/java/me/qlong/tech/sample/DemoApplication.java @@ -0,0 +1,27 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 me.qlong.tech.sample; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class DemoApplication { + public static void main(String[] args) { + SpringApplication.run(DemoApplication.class, args); + } +} \ No newline at end of file diff --git a/sofa-jarslink-samples/spring-boot-transform-sample/src/main/resources/config/application.properties b/sofa-jarslink-samples/spring-boot-transform-sample/src/main/resources/config/application.properties new file mode 100644 index 0000000..f9b0aa2 --- /dev/null +++ b/sofa-jarslink-samples/spring-boot-transform-sample/src/main/resources/config/application.properties @@ -0,0 +1,5 @@ +# Application Name +spring.application.name=spring-boot-transform-sample + +# logging path +logging.path=./logs