Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
hk581
spring-framework
提交
eeed20d8
S
spring-framework
项目概览
hk581
/
spring-framework
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
spring-framework
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
eeed20d8
编写于
3月 05, 2019
作者:
J
Juergen Hoeller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Polishing
上级
c0b6488e
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
17 addition
and
14 deletion
+17
-14
spring-beans/src/test/java/org/springframework/beans/factory/config/PropertyResourceConfigurerTests.java
...beans/factory/config/PropertyResourceConfigurerTests.java
+2
-1
src/docs/asciidoc/core/core-appendix.adoc
src/docs/asciidoc/core/core-appendix.adoc
+4
-4
src/docs/asciidoc/languages/kotlin.adoc
src/docs/asciidoc/languages/kotlin.adoc
+11
-9
未找到文件。
spring-beans/src/test/java/org/springframework/beans/factory/config/PropertyResourceConfigurerTests.java
浏览文件 @
eeed20d8
/*
* Copyright 2002-201
8
the original author or authors.
* Copyright 2002-201
9
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.
...
...
@@ -59,6 +59,7 @@ import static org.springframework.tests.TestResourceUtils.*;
* @since 02.10.2003
* @see PropertyPlaceholderConfigurerTests
*/
@SuppressWarnings
(
"deprecation"
)
public
class
PropertyResourceConfigurerTests
{
static
{
...
...
src/docs/asciidoc/core/core-appendix.adoc
浏览文件 @
eeed20d8
...
...
@@ -555,10 +555,10 @@ available to you:
==== Using `<property-placeholder/>`
This element activates the replacement of `${...}` placeholders, which are resolved against a
specified properties file (as a <<core.adoc#resources, Spring resource location>>). This element
is
a convenience mechanism that sets up a <<core.adoc#beans-factory-placeholderconfigurer,
`Property
PlaceholderConfigurer`>> for you. If you need more control over the
`Property
PlaceholderConfigurer`, you can explicitly define one
yourself.
specified properties file (as a <<core.adoc#resources, Spring resource location>>). This element
is
a convenience mechanism that sets up a <<core.adoc#beans-factory-placeholderconfigurer,
`Property
SourcesPlaceholderConfigurer`>> for you. If you need more control over the specific
`Property
SourcesPlaceholderConfigurer` setup, you can explicitly define it as a bean
yourself.
[[xsd-schemas-context-ac]]
...
...
src/docs/asciidoc/languages/kotlin.adoc
浏览文件 @
eeed20d8
...
...
@@ -262,15 +262,16 @@ for more details and up-to-date information.
== Web
=== WebFlux Router DSL
Spring Framework comes with a Kotlin router DSL available in
2
flavors:
Spring Framework comes with a Kotlin router DSL available in
two
flavors:
- Reactive with {doc-root}/spring-framework/docs/{spring-version}/kdoc-api/spring-framework/org.springframework.web.reactive.function.server/-router-function-dsl/[router { }]
- <<Coroutines>>
These DSL let you use the <<web-reactive#webflux-fn,
WebFlux functional API>> to write clean and idiomatic Kotlin code
to build a `RouterFunction` instance as the following example shows:
These DSL let you use the <<web-reactive#webflux-fn,
WebFlux functional API>> to write clean
and idiomatic Kotlin code
to build a `RouterFunction` instance as the following example shows:
[source,kotlin,indent=0]
----
...
...
@@ -293,8 +294,8 @@ to build a `RouterFunction` instance as the following example shows:
----
NOTE: This DSL is programmatic, meaning that it allows custom registration logic of beans
through an `if` expression, a `for` loop, or any other Kotlin constructs. That can be useful
when you need to register routes
depending on dynamic data (for example, from a database).
through an `if` expression, a `for` loop, or any other Kotlin constructs. That can be useful
when you need to register routes
depending on dynamic data (for example, from a database).
See https://github.com/mixitconf/mixit/tree/dafd5ccc92dfab6d9c306fcb60b28921a1ccbf79/src/main/kotlin/mixit/web/routes[MiXiT project routes]
for a concrete example.
...
...
@@ -308,8 +309,9 @@ is provided via extensions for WebFlux client and server functional API. A dedic
{doc-root}/spring-framework/docs/{spring-version}/kdoc-api/spring-framework/org.springframework.web.reactive.function.server/-co-router-function-dsl/[`coRouter { }`]
router DSL is also available.
Coroutines extensions use `await` prefix or `AndAwait` suffix, and most are using similar names to their Reactive
counterparts, except `exchange` in `WebClient.RequestHeadersSpec` which translates to `awaitResponse`.
Coroutines extensions use `await` prefix or `AndAwait` suffix, and most are using similar
names to their reactive counterparts, except `exchange` in `WebClient.RequestHeadersSpec`
which translates to `awaitResponse`.
[source,kotlin,indent=0]
----
...
...
@@ -339,8 +341,8 @@ to understand how to run code concurrently with Coroutines.
=== MockMvc DSL
A Kotlin DSL is provided via `MockMvc` Kotlin extensions in order to provide a more
idiomatic Kotlin API and to allow
better discoverability (no usage of static methods).
A Kotlin DSL is provided via `MockMvc` Kotlin extensions in order to provide a more
idiomatic Kotlin API and to allow
better discoverability (no usage of static methods).
[source,kotlin,indent=0]
----
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录