Skip to content

Commit 3b2242a

Browse files
committed
Fix docs. Reformat.
1 parent 97148c5 commit 3b2242a

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

docs/modules/ROOT/pages/spring-cloud-openfeign.adoc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ public interface StoreClient {
4545
@GetMapping("/stores")
4646
Page<Store> getStores(Pageable pageable);
4747
48-
@PostMapping(value = "/stores/{storeId}", consumes = "application/json", params = "mode=upsert")
48+
@PostMapping(value = "/stores/{storeId}", consumes = "application/json",
49+
params = "mode=upsert")
4950
Store update(@PathVariable("storeId") Long storeId, Store store);
5051
5152
@DeleteMapping("/stores/{storeId:\\d+}")
@@ -723,11 +724,11 @@ public interface DemoTemplate {
723724
}
724725
----
725726

726-
In the above example, the request url is resolved to `/stores/{storeId}?mode=upsert`. +
727+
In the above example, the request url is resolved to `/stores/storeId?mode=upsert`. +
727728
The params attribute also supports the use of multiple `key=value` or only one `key`: +
728729

729-
- When `params = { "key1=v1", "key2=v2" }`, the request url is parsed as `/stores/{storeId}?key1=v1&key2=v2`.
730-
- When `params = "key"`, the request url is parsed as `/stores/{storeId}?key`.
730+
- When `params = { "key1=v1", "key2=v2" }`, the request url is parsed as `/stores/storeId?key1=v1&key2=v2`.
731+
- When `params = "key"`, the request url is parsed as `/stores/storeId?key`.
731732

732733

733734

spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/aot/FeignClientBeanFactoryInitializationAotProcessor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ private void registerMethodHints(ReflectionHints hints, Class<?> clazz) {
111111
introspectPublicMethodsOnAllInterfaces(hints, clazz);
112112
}
113113

114-
// TODO: switch to reflectionHints.registerForInterfaces(...) after upgrading to Framework 6.2.0
114+
// TODO: switch to reflectionHints.registerForInterfaces(...) after upgrading to
115+
// Framework 6.2.0
115116
// from Spring Framework BeanRegistrationsAotContribution
116117
private void introspectPublicMethodsOnAllInterfaces(ReflectionHints hints, Class<?> clazz) {
117118
Class<?> currentClass = clazz;

0 commit comments

Comments
 (0)