File tree Expand file tree Collapse file tree 7 files changed +92
-6
lines changed
examples/config/encryption/src
java/io/helidon/examples/config
test/java/io/helidon/examples/config Expand file tree Collapse file tree 7 files changed +92
-6
lines changed Original file line number Diff line number Diff line change 1515 */
1616package io .helidon .examples .config ;
1717
18- import io .helidon .logging .common .LogConfig ;
1918import io .helidon .config .Config ;
19+ import io .helidon .logging .common .LogConfig ;
2020import io .helidon .webserver .WebServer ;
2121import io .helidon .webserver .http .HttpRouting ;
2222
@@ -36,7 +36,6 @@ private Main() {
3636 * @param args command line arguments.
3737 */
3838 public static void main (String [] args ) {
39-
4039 // load logging configuration
4140 LogConfig .configureRuntime ();
4241
@@ -61,4 +60,4 @@ public static void main(String[] args) {
6160 static void routing (HttpRouting .Builder routing ) {
6261 routing .get ("/simple-greet" , (req , res ) -> res .send ("Hello World!" ));
6362 }
64- }
63+ }
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2025 Oracle and/or its affiliates.
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
116package io .helidon .examples .config ;
Original file line number Diff line number Diff line change 1+ #
2+ # Copyright (c) 2025 Oracle and/or its affiliates.
3+ #
4+ # Licensed under the Apache License, Version 2.0 (the "License");
5+ # you may not use this file except in compliance with the License.
6+ # You may obtain a copy of the License at
7+ #
8+ # http://www.apache.org/licenses/LICENSE-2.0
9+ #
10+ # Unless required by applicable law or agreed to in writing, software
11+ # distributed under the License is distributed on an "AS IS" BASIS,
12+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ # See the License for the specific language governing permissions and
14+ # limitations under the License.
15+ #
116server :
217 port : 8080
318 host : 0.0.0.0
Original file line number Diff line number Diff line change 1+ #
2+ # Copyright (c) 2025 Oracle and/or its affiliates.
3+ #
4+ # Licensed under the Apache License, Version 2.0 (the "License");
5+ # you may not use this file except in compliance with the License.
6+ # You may obtain a copy of the License at
7+ #
8+ # http://www.apache.org/licenses/LICENSE-2.0
9+ #
10+ # Unless required by applicable law or agreed to in writing, software
11+ # distributed under the License is distributed on an "AS IS" BASIS,
12+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ # See the License for the specific language governing permissions and
14+ # limitations under the License.
15+ #
116handlers =io.helidon.logging.jul.HelidonConsoleHandler
217java.util.logging.SimpleFormatter.format =%1$tY.%1$tm.%1$td %1$tH:%1$tM:%1$tS.%1$tL %4$s %5$s%6$s%n
318# Global logging level. Can be overridden by specific loggers
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2025 Oracle and/or its affiliates.
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
116package io .helidon .examples .config ;
217
3-
418import io .helidon .http .Status ;
519import io .helidon .webclient .api .ClientResponseTyped ;
620import io .helidon .webclient .http1 .Http1Client ;
@@ -32,6 +46,4 @@ void testSimpleGreet() {
3246 assertThat (response .status (), is (Status .OK_200 ));
3347 assertThat (response .entity (), is ("Hello World!" ));
3448 }
35-
36-
3749}
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2025 Oracle and/or its affiliates.
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
116package io .helidon .examples .config ;
217
318import io .helidon .webclient .http1 .Http1Client ;
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2025 Oracle and/or its affiliates.
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
116package io .helidon .examples .config ;
217
318import io .helidon .webserver .testing .junit5 .DirectClient ;
You can’t perform that action at this time.
0 commit comments