-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
185 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |