Removing AJSC and moving to SpringBoot
[aai/search-data-service.git] / src / main / java / org / onap / aai / sa / Application.java
diff --git a/src/main/java/org/onap/aai/sa/Application.java b/src/main/java/org/onap/aai/sa/Application.java
new file mode 100644 (file)
index 0000000..2ccebd1
--- /dev/null
@@ -0,0 +1,53 @@
+/**\r
+ * ============LICENSE_START=======================================================\r
+ * org.onap.aai\r
+ * ================================================================================\r
+ * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.\r
+ * Copyright © 2017-2018 Amdocs\r
+ * ================================================================================\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ *       http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ * ============LICENSE_END=========================================================\r
+ */\r
+package org.onap.aai.sa;\r
+\r
+// import org.eclipse.jetty.util.security.Password;\r
+\r
+import org.springframework.boot.SpringApplication;\r
+import org.springframework.boot.autoconfigure.SpringBootApplication;\r
+\r
+@SpringBootApplication\r
+public class Application {\r
+\r
+//     public static String[] deobfuscateArgs(String[] args, String ... attrnames) {\r
+//\r
+//             String[] deobfuscatedArgs = args.clone();\r
+//\r
+//             Password.deobfuscate("HI");\r
+//\r
+//             //System.setProperty(arg0, arg1)\r
+//\r
+//             return deobfuscatedArgs;\r
+//     }\r
+//\r
+    public static void main(String[] args) {\r
+       \r
+       //server.ssl.key-store-password=onapSecret\r
+       //server.ssl.key-password=onapSecret\r
+//     args = new String[]{"-Dserver.ssl.key-store-password", "onapSecret",\r
+//                     "-Dserver.ssl.key-password", "onapSecret"};\r
+       \r
+       SpringApplication.run(Application.class, args);\r
+\r
+       //deobfuscateArgs(args, "server.ssl.key-store-password", "server.ssl.key-password"));\r
+    }\r
+}\r