X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=sample-services%2Fhello-world-sme-invoker%2Fsrc%2Fmain%2Fjava%2Forg%2Foransc%2Fnonrtric%2Fsample%2FHelloWorldSmeInvokerApplication.java;fp=sample-services%2Fhello-world-sme-invoker%2Fsrc%2Fmain%2Fjava%2Forg%2Foransc%2Fnonrtric%2Fsample%2FHelloWorldSmeInvokerApplication.java;h=0a384f42530067fcdbd942494d63a16e6225b3d3;hb=dafdbe531634823882261f2ce8c9cf334b579b52;hp=0000000000000000000000000000000000000000;hpb=53ebb953e0e18e695fd0e807c2f1282ef54ceeee;p=nonrtric.git diff --git a/sample-services/hello-world-sme-invoker/src/main/java/org/oransc/nonrtric/sample/HelloWorldSmeInvokerApplication.java b/sample-services/hello-world-sme-invoker/src/main/java/org/oransc/nonrtric/sample/HelloWorldSmeInvokerApplication.java new file mode 100644 index 00000000..0a384f42 --- /dev/null +++ b/sample-services/hello-world-sme-invoker/src/main/java/org/oransc/nonrtric/sample/HelloWorldSmeInvokerApplication.java @@ -0,0 +1,39 @@ +/*- + * ========================LICENSE_START================================= + * O-RAN-SC + * %% + * Copyright (C) 2024 OpenInfra Foundation Europe. + * %% + * Licensed 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. + * ========================LICENSE_END=================================== + */ + +package org.oransc.nonrtric.sample; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.web.client.RestTemplateBuilder; +import org.springframework.context.annotation.Bean; +import org.springframework.web.client.RestTemplate; + +@SpringBootApplication(scanBasePackages = "org.oransc.nonrtric.sample") +public class HelloWorldSmeInvokerApplication { + public static void main(String[] args) { + SpringApplication.run(HelloWorldSmeInvokerApplication.class, args); + } + + @Bean + public RestTemplate restTemplate(RestTemplateBuilder builder) { + return builder.build(); + } +}