question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rework @Configuration classes to be compatible with @Configuration(proxyBeanMethods=false)

See original GitHub issue

Juergen has just merged support for @Configuration(proxyBeanMethods=false) into Framework 5.2 snapshots. We’re going to make as much use of that as possible in Boot 2.2.0.M2 (https://github.com/spring-projects/spring-boot/issues/9068). There’s a configuration class in Boot where we need @Bean methods to be proxied because they subclass a Spring Session configuration class that requires it. The class in question is o.s.b.a.s.RedisSessionConfiguration$SpringBootRedisHttpSessionConfiguration which is a subclass of o.s.s.d.r.c.a.w.h.RedisHttpSessionConfiguration. Could you please consider reworking things in Spring Session so that the proxy isn’t needed?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
vpaviccommented, May 9, 2019

This is now resolved thanks to Framework’s changes in ImportAware handling made in spring-projects/spring-framework#22920 (thanks for the ping @eleftherias).

0reactions
vpaviccommented, Mar 14, 2019

After taking a closer look at the problem, the originally reported problem will be fairly simple to address in RedisHttpSessionConfiguration and we’re going to do it in #1362.

Reworking our @Configuration classes to be able to marked as proxyBeanMethods = false is something that will require more substantial changes, mostly due to those classes implementing ImportAware. We’ll leave this issue open to track that effort.

Read more comments on GitHub >

github_iconTop Results From Across the Web

When to set proxyBeanMethods to false in Springs ...
In Springboot version 2 and onwards, all AutoConfiguration classes are configured with @Configuration(proxyBeanMethods = false).
Read more >
Configuration (Spring Framework 6.0.2 API)
Indicates that a class declares one or more @Bean methods and may be processed by the Spring container to generate bean definitions and...
Read more >
Understanding inter-bean method reference in Spring ...
Semantically a @Configuration class makes more sense. The @Configuration annotation allows you to define the proxyBeanMethods=false property to ...
Read more >
Create configuration classes - Sitefinity CMS Development
Use this procedure to create your own configurations that you can then modify through the backend's Advanced settings.
Read more >
CGLIB Proxying in Spring @Configuration - Java By Examples
In this quick tutorial, we'll talk about CGLIB proxying in Spring @Configuration classes. Mainly, we'll look at some practical examples, and then examine ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found