Browse Source

Fix wrong javadoc example

Closes gh-1575
pull/1575/merge
Haruki Okada 7 years ago committed by Stephane Nicoll
parent
commit
159da04eed
  1. 8
      spring-context/src/main/java/org/springframework/context/annotation/Primary.java

8
spring-context/src/main/java/org/springframework/context/annotation/Primary.java

@ -47,18 +47,18 @@ import java.lang.annotation.Target; @@ -47,18 +47,18 @@ import java.lang.annotation.Target;
* }
*
* @Component
* public class JdbcFooRepository {
* public class JdbcFooRepository extends FooRepository {
*
* public JdbcFooService(DataSource dataSource) {
* public JdbcFooRepository(DataSource dataSource) {
* // ...
* }
* }
*
* @Primary
* @Component
* public class HibernateFooRepository {
* public class HibernateFooRepository extends FooRepository {
*
* public HibernateFooService(SessionFactory sessionFactory) {
* public HibernateFooRepository(SessionFactory sessionFactory) {
* // ...
* }
* }

Loading…
Cancel
Save