From 88302823347d14e2c1623b2c6de26ac07ebfdd96 Mon Sep 17 00:00:00 2001 From: Zen Huifer Date: Mon, 4 Dec 2023 09:36:04 +0800 Subject: [PATCH] write a line into test.file --- ...s7cbb2666-9245-11ee-bc7d-acde48001122.java | 20 +++++++++ ...s7cea22ea-9245-11ee-bc7d-acde48001122.java | 42 +++++++++++++++++++ ...s7d1939ae-9245-11ee-bc7d-acde48001122.java | 21 ++++++++++ 3 files changed, 83 insertions(+) create mode 100644 docs/spring/cs7cbb2666-9245-11ee-bc7d-acde48001122.java create mode 100644 docs/spring/cs7cea22ea-9245-11ee-bc7d-acde48001122.java create mode 100644 docs/spring/cs7d1939ae-9245-11ee-bc7d-acde48001122.java diff --git a/docs/spring/cs7cbb2666-9245-11ee-bc7d-acde48001122.java b/docs/spring/cs7cbb2666-9245-11ee-bc7d-acde48001122.java new file mode 100644 index 00000000..c205f0b4 --- /dev/null +++ b/docs/spring/cs7cbb2666-9245-11ee-bc7d-acde48001122.java @@ -0,0 +1,20 @@ +/** + * Copyright 2009-2015 the original author or authors. + *

+ * 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. + */ +package org.apache.ibatis.submitted.extend; + +public class Child extends Parent { + +} diff --git a/docs/spring/cs7cea22ea-9245-11ee-bc7d-acde48001122.java b/docs/spring/cs7cea22ea-9245-11ee-bc7d-acde48001122.java new file mode 100644 index 00000000..8237c182 --- /dev/null +++ b/docs/spring/cs7cea22ea-9245-11ee-bc7d-acde48001122.java @@ -0,0 +1,42 @@ +package com.huifer.webflux.controller; + +import lombok.extern.slf4j.Slf4j; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; +import reactor.core.publisher.Flux; + +import java.util.List; + +/** + * 描述: + * + * @author huifer + * @date 2019-06-02 + */ +@RestController +@Slf4j +public class FluxController { + + @GetMapping("/flux") + public Flux flux1(@RequestParam String[] lang) { + return Flux.fromArray(lang); + } + + @GetMapping("/flux2") + public Flux flux2(@RequestParam List lang) { + + return Flux.fromStream(lang.stream()); + } + + /** + * 返回给JS进行操作并不是直接给用户查看 + * + * @return + */ + @GetMapping(value = "/see", produces = "text/event-stream") + public Flux flux3() { + return Flux.just("java", "python"); + } + +} diff --git a/docs/spring/cs7d1939ae-9245-11ee-bc7d-acde48001122.java b/docs/spring/cs7d1939ae-9245-11ee-bc7d-acde48001122.java new file mode 100644 index 00000000..c8491f3b --- /dev/null +++ b/docs/spring/cs7d1939ae-9245-11ee-bc7d-acde48001122.java @@ -0,0 +1,21 @@ +/** + * Copyright 2009-2015 the original author or authors. + *

+ * 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. + *

+ * Base package. Contains the SqlSession. + */ +/** + * Base package. Contains the SqlSession. + */ +package org.apache.ibatis.session;