Skip to content

Commit 1433d47

Browse files
committed
[docs] javax.inject should be jakarta and reference to EE version should be removed on specific version as Jakarta is all that way
1 parent fc63406 commit 1433d47

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/site/es/markdown/mappers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ Si se indican ambas se añadirán todos los mappers que cumplan **cualquier** cr
141141

142142
Los mappers descubiertos serán nombrados usando la estratégia de nombres por defecto de Spring para los componentes autodetectados (see [the Spring reference document(Core Technologies -Naming autodetected components-](https://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#beans-scanning-name-generator)).
143143
Es decir, si no se encuentra ninguna anotación, se usará el nombre no cualificado sin capitalizar del mapper. Pero si se encuentra una anotación `@Component` o JSR-330 `@Named` se obtendrá el nombre de dicha anotación.
144-
Fíjate que puedes usar como valor de la `annotation` el valor `org.springframework.stereotype.Component`, `javax.inject.Named` (if you have JSE 6) o una anotación propia (que debe ser a su vez anotada) de forma que la anotación hará las veces de localizador y de proveedor de nombre.
144+
Fíjate que puedes usar como valor de la `annotation` el valor `org.springframework.stereotype.Component`, `jakarta.inject.Named` (if you have Jakarta EE) o una anotación propia (que debe ser a su vez anotada) de forma que la anotación hará las veces de localizador y de proveedor de nombre.
145145

146146
<span class="label important">NOTE</span>
147147
`<context:component-scan/>` no puede encontrar y registrar mappers. Los mappers son interfaces y, para poderlos registrar en Spring, el scanner deben conocer cómo crear un `MapperFactoryBean` para cada interfaz encontrado.

src/site/ja/markdown/mappers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ XML 設定の例:
139139

140140
検出された Mapper は、Spring の自動検出コンポーネントに対するデフォルト命名規則によって Bean 名が決められます[the Spring reference document(Core Technologies -Naming autodetected components-](https://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#beans-scanning-name-generator) を参照してください。
141141
アノテーションによる指定がない場合はクラス名の先頭を小文字にした文字列が Bean 名となりますが、`@Component` あるいは JSR-330 の `@Named` アノテーションを使って Bean 名を明示的に指定することもできます。
142-
先に説明した `annotation` 属性で `org.springframework.stereotype.Component``javax.inject.Named`Java 6 以降を利用している場合のみ)を指定すれば、検出時のマーカーと Bean 名の指定を1つのアノテーションで兼ねることができます。
142+
先に説明した `annotation` 属性で `org.springframework.stereotype.Component``jakarta.inject.Named`Jakarta EE 以降を利用している場合のみ)を指定すれば、検出時のマーカーと Bean 名の指定を1つのアノテーションで兼ねることができます。
143143
同じ目的で独自に定義したアノテーションを使うこともできますが、このアノテーション自体に `@Component``@Named` を付加しておく必要があります。
144144

145145
<span class="label important">NOTE</span>

src/site/ko/markdown/mappers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ The `default-scope` apply to the mapper bean(`MapperFactoryBean`) when scope of
136136

137137
발견된 매퍼는 자동검색된 컴포넌트를 위한 스프링의 디폴트 명명규칙 전략(see [the Spring reference document(Core Technologies -Naming autodetected components-)](https://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#beans-scanning-name-generator) 을 사용해서 빈이름이 명명된다.
138138
빈 이름을 정하는 애노테이션이 없다면 매퍼의 이름에서 첫글자를 소문자로 변환한 형태로 빈 이름을 사용할 것이다. `@Component` 나 JSR-330의 `@Named` 애노테이션이 있다면 애노테이션에 정의한 이름을 그대로 사용할 것이다.
139-
`annotation` 프로퍼티를 `org.springframework.stereotype.Component`, `javax.inject.Named`(자바SE 1.6을 사용한다면) 또는 개발자가 스스로 작성한 애노테이션으로 셋팅할 수 있다.
139+
`annotation` 프로퍼티를 `org.springframework.stereotype.Component`, `jakarta.inject.Named`(Jakarta EE을 사용한다면) 또는 개발자가 스스로 작성한 애노테이션으로 셋팅할 수 있다.
140140
그러면 애노테이션은 마커와 이름을 제공하는 역할로 동작할 것이다.
141141

142142
<span class="label important">중요</span>

src/site/markdown/mappers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ By default, these two properties are null, so all interfaces in the given base p
135135

136136
Discovered mappers will be named using Spring default naming strategy for autodetected components (see [the Spring reference document(Core Technologies -Naming autodetected components-)](https://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#beans-scanning-name-generator)).
137137
That is, if no annotation is found, it will use the uncapitalized non-qualified class name of the mapper. But if either a `@Component` or a JSR-330 `@Named` annotation is found it will get the name from the annotation.
138-
Notice that you can set the `annotation` attribute to `org.springframework.stereotype.Component`, `javax.inject.Named` (if you have JSE 6) or to your own annotation (that must be itself annotated) so the annotation will work both as a marker and as a name provider.
138+
Notice that you can set the `annotation` attribute to `org.springframework.stereotype.Component`, `jakarta.inject.Named` (if you have JakartaEE) or to your own annotation (that must be itself annotated) so the annotation will work both as a marker and as a name provider.
139139

140140
<span class="label important">NOTE</span>
141141
`<context:component-scan/>` won't be able to scan and register mappers. Mappers are interfaces and, in order to register them to Spring, the scanner must know how to create a `MapperFactoryBean` for each interface it finds.

src/site/zh_CN/markdown/mappers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public interface GoodsMapper {
137137

138138
被发现的映射器会按照 Spring 对自动发现组件的默认命名策略进行命名(参考 [the Spring reference document(Core Technologies -Naming autodetected components-)](https://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#beans-scanning-name-generator) )。
139139
也就是说,如果没有使用注解显式指定名称,将会使用映射器的首字母小写非全限定类名作为名称。但如果发现映射器具有 `@Component` 或 JSR-330 标准中 `@Named` 注解,会使用注解中的名称作为名称。
140-
提醒一下,你可以设置 `annotation` 属性为你自定义的注解,然后在你的注解上设置 `org.springframework.stereotype.Component``javax.inject.Named`(需要使用 Java SE 6 以上)注解,这样你的注解既可以作为标记,也可以作为一个名字提供器来使用了。
140+
提醒一下,你可以设置 `annotation` 属性为你自定义的注解,然后在你的注解上设置 `org.springframework.stereotype.Component``jakarta.inject.Named`(需要使用 Jakarta EE 以上)注解,这样你的注解既可以作为标记,也可以作为一个名字提供器来使用了。
141141

142142
<span class="label important">提示</span>
143143
`<context:component-scan/>` 无法发现并注册映射器。映射器的本质是接口,为了将它们注册到 Spring 中,发现器必须知道如何为找到的每个接口创建一个 `MapperFactoryBean`

0 commit comments

Comments
 (0)