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 Mar 22, 2024
1 parent 883244d commit e137da9
Show file tree
Hide file tree
Showing 8 changed files with 185 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docs/spring/cs8be18098-e7ec-11ee-a13b-acde48001122.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/**
* Copyright 2009-2018 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.associationtest;

import java.util.List;

public interface Mapper {

List<Car> getCars();

List<Car> getCars2();

List<Car> getCarsAndDetectAssociationType();

}
19 changes: 19 additions & 0 deletions docs/spring/cs8c3aa4de-e7ec-11ee-a13b-acde48001122.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package com.huifer.dubbo.server.provider;

import com.huifer.dubbo.server.api.DubboHello;

/**
* <p>Title : DubboHelloImpl </p>
* <p>Description : </p>
*
* @author huifer
* @date 2019-06-13
*/
public class DubboHelloImpl implements DubboHello {

@Override
public String hello(String msg) {
return "dubbo : " + msg;
}

}
23 changes: 23 additions & 0 deletions docs/spring/cs8c90fb5e-e7ec-11ee-a13b-acde48001122.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package com.huifer.dubbo.server.provider;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
* <p>Title : Bootstrap </p>
* <p>Description : </p>
*
* @author huifer
* @date 2019-06-13
*/
public class Bootstrap {

public static void main(String[] args) throws IOException {
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
"META-INF/spring/dubbo-server.xml");
context.start();
System.in.read();
}

}
33 changes: 33 additions & 0 deletions docs/spring/cs8ce8f836-e7ec-11ee-a13b-acde48001122.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/**
* Copyright 2009-2018 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.serializecircular;

import java.io.Serializable;

public class Attribute implements Serializable {
private static final long serialVersionUID = 1L;

private Integer id;

public Integer getId() {
return id;
}

public void setId(Integer id) {
this.id = id;
}

}
17 changes: 17 additions & 0 deletions docs/spring/cs8d39714e-e7ec-11ee-a13b-acde48001122.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.huifer.design.builder;

/**
* 轮子
*/
public class Wheel {

private Integer size;

public Integer getSize() {
return size;
}

public void setSize(Integer size) {
this.size = size;
}
}
51 changes: 51 additions & 0 deletions docs/spring/cs8d8a8746-e7ec-11ee-a13b-acde48001122.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
package com.huifer.webflux.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

import java.util.concurrent.TimeUnit;

/**
* 描述:
*
* @author huifer
* @date 2019-06-02
*/
@RestController
@Slf4j
public class MonoController {

@GetMapping("/default")
public String defaultResp() {
log.info("defaultResp method start");
String default_hello = doSome("default hello");
log.info("defaultResp method end");

return default_hello;
}


@GetMapping("/mono")
public Mono<String> mono() {
log.info("mono method start");
Mono<String> mono_hello = Mono.fromSupplier(() -> doSome("mono hello"));
log.info("mono method end");
return mono_hello;

}


private String doSome(String msg) {
try {
TimeUnit.SECONDS.sleep(3);
} catch (InterruptedException e) {
e.printStackTrace();
}

return msg;
}


}
7 changes: 7 additions & 0 deletions docs/spring/cs8ddee070-e7ec-11ee-a13b-acde48001122.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.huifer.fzjh.exception;

public class LoadBalanceException extends RuntimeException {
public LoadBalanceException(String message) {
super(message);
}
}
7 changes: 7 additions & 0 deletions docs/spring/cs8e3141e4-e7ec-11ee-a13b-acde48001122.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.huifer.githubst.service;

import java.io.IOException;

public interface ICommitService {
void getCommit() throws IOException;
}

0 comments on commit e137da9

Please sign in to comment.