Skip to content

Commit

Permalink
write a line into test.file
Browse files Browse the repository at this point in the history
  • Loading branch information
huifer committed Dec 4, 2023
1 parent 94bac07 commit 8830282
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/spring/cs7cbb2666-9245-11ee-bc7d-acde48001122.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* Copyright 2009-2015 the original author or authors.
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* 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 {

}
42 changes: 42 additions & 0 deletions docs/spring/cs7cea22ea-9245-11ee-bc7d-acde48001122.java
Original file line number Diff line number Diff line change
@@ -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<String> flux1(@RequestParam String[] lang) {
return Flux.fromArray(lang);
}

@GetMapping("/flux2")
public Flux<String> flux2(@RequestParam List<String> lang) {

return Flux.fromStream(lang.stream());
}

/**
* 返回给JS进行操作并不是直接给用户查看
*
* @return
*/
@GetMapping(value = "/see", produces = "text/event-stream")
public Flux<String> flux3() {
return Flux.just("java", "python");
}

}
21 changes: 21 additions & 0 deletions docs/spring/cs7d1939ae-9245-11ee-bc7d-acde48001122.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* Copyright 2009-2015 the original author or authors.
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* 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.
* <p>
* Base package. Contains the SqlSession.
*/
/**
* Base package. Contains the SqlSession.
*/
package org.apache.ibatis.session;

0 comments on commit 8830282

Please sign in to comment.