Skip to content

Reference documentation mentions wrong variable name #2852

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed

Conversation

Raccoon-a
Copy link
Contributor

Found this problem while studying

before fixing

@Configuration
class MyConfig {

  @Bean
  LettuceConnectionFactory connectionFactory() {
    return new LettuceConnectionFactory();
  }

  @Bean
  RedisTemplate<String, String> redisTemplate(RedisConnectionFactory connectionFactory) {

    RedisTemplate<String, String> template = new RedisTemplate<>();
    template.setConnectionFactory(redisConnectionFactory);
    return template;
  }
}

After modification

@Configuration
class MyConfig {

  @Bean
  LettuceConnectionFactory connectionFactory() {
    return new LettuceConnectionFactory();
  }

  @Bean
  RedisTemplate<String, String> redisTemplate(RedisConnectionFactory connectionFactory) {

    RedisTemplate<String, String> template = new RedisTemplate<>();
    template.setConnectionFactory(connectionFactory);
    return template;
  }
}

…guring Template API redisTemplate method parameters).
@pivotal-cla
Copy link

@Raccoon-a Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 17, 2024
@pivotal-cla
Copy link

@Raccoon-a Thank you for signing the Contributor License Agreement!

@mp911de mp911de self-assigned this Mar 4, 2024
@mp911de mp911de added type: documentation A documentation update and removed status: waiting-for-triage An issue we've not yet triaged labels Mar 4, 2024
@mp911de mp911de changed the title Modify RedisTemplate document redisTemplate method parameter name Reference documentation mentions wrong variable name Mar 4, 2024
@mp911de mp911de closed this in 7c35464 Mar 4, 2024
mp911de pushed a commit that referenced this pull request Mar 4, 2024
@mp911de mp911de added this to the 3.2.4 (2023.1.4) milestone Mar 4, 2024
@mp911de
Copy link
Member

mp911de commented Mar 4, 2024

Thank you for your contribution. That's merged and backported now.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
type: documentation A documentation update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants