Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 17:01
    philwebb unlabeled #28803
  • 16:57
    philwebb unlabeled #2652
  • 16:51
    philwebb milestoned #21099
  • 16:50
    philwebb assigned #21099
  • 16:50
    philwebb labeled #21099
  • 16:50
    philwebb unlabeled #21099
  • 16:50
    philwebb unlabeled #21099
  • 16:47
    philwebb unlabeled #24947
  • 16:46
    philwebb unlabeled #28592
  • 16:44
    philwebb milestoned #28845
  • 16:44
    philwebb unlabeled #28845
  • 16:44
    philwebb unlabeled #28845
  • 16:44
    philwebb labeled #28845
  • 15:01
    etiennestuder commented #28857
  • 14:40

    wilkinsona on 2.7.x

    Make clean remove the root buil… Merge branch '2.5.x' into 2.6.x… Merge branch '2.6.x' into 2.7.x… (compare)

  • 14:40

    wilkinsona on 2.5.x

    Make clean remove the root buil… (compare)

  • 14:40

    wilkinsona on 2.6.x

    Make clean remove the root buil… Merge branch '2.5.x' into 2.6.x… (compare)

  • 14:40
    wilkinsona closed #28881
  • 14:40
    wilkinsona closed #28880
  • 14:40
    wilkinsona closed #28857
James Howe
@OrangeDog
or make sure you always specify the right one in @Transactional
Konstantin Bläsi
@konstantinblaesi
can I make spring log the final configuration values (multiple sources, profiles merged) ?
James Howe
@OrangeDog
@konstantinblaesi probably one of the actuators will report what you want (configprops, env)
nightswimmings
@nightswimmings
@OrangeDog The thing is I dont need to understand multiples, I always specify it, but I cannot modify the third-party lib, so I am looking for a way to specify the txManager for the dependency or either exclude it at all as a last resort
James Howe
@OrangeDog
What I said is still correct. Your primary manager will need some logic to decide which of the others it should delegate to (e.g. the one with a current transaction)
Konstantin Bläsi
@konstantinblaesi
@OrangeDog I checked configprops, very cool thanks :)
nightswimmings
@nightswimmings
@OrangeDog sorry, I am having difficulties to understand what you describe but I am forgetting something for sure. If I go to the third-party library, delete or edit the @Transactional annotation to use same txmanager than mylib, then at what point theres delegation?
James Howe
@OrangeDog
I am assuming you don't want to or cannot edit the third-party library
nightswimmings
@nightswimmings
exactly, but this is the behavior Id like to imitate, if i manage to do that, then do I need to do a composed manager?
if only I could do a @Transactional(propagation=ignoresubtransactions) or either something like @EnableTransactional(exclude=third-party.class)
and that is assuming that the current and expected behavior is that upon propagation=REQUIRED, transaction does support parent transaction but not parent's transactionmanager which I don't see it obvious at all
James Howe
@OrangeDog
You need a primary transaction manager that understands multiple transaction managers or make sure you always specify the right one in @Transactional
What the aspect does is determine what transaction manager to call around the method. It doesn't do any tracking of transactions or managers itself.
A third option is a custom aspect that looks at the method's class/package to decide which transaction manager to use, but IMO that's more messy.
none of which has anything to do with propagation
nightswimmings
@nightswimmings
all the solutions seem no trivial for a hotfix then :'(...
Are we sure theres no mechanism for marking a bean as not qualifiable to support transactions? I mean something like @EnableTransactions(exclude=thirdparty.class). I need the bean to be managed, but I want the @Transactional to be ignored
Anyway, thanks for your help james
James Howe
@OrangeDog
there is not
perhaps you could do something really hacky with Bean(Definition)PostProcessors but the other solutions are all easier
aghag10
@aghag10
@bvn13 Thanks. I'll give that a shot.
bjonnh
@bjonnh
I have two models (kotlin data classes) linked through a manytomany relationship (pg database)
when I want to do A.allofB.size where allofB is the manytomany field that link A to B (through a join table)
I get in infinite recursion
I've dealt with infinite recursion when serializing my data (Json), but in that case I am not serializing anything…
(and the two manytomany sides are LAZY)
If I remove the manytomany field on the class B, then I can run that (but I cannot find all the A linked to an object B from an object of type B)
I can't find a way to have the both sides of that manytomany relation
(and I am NOT using serialization here)
I am wondering if it could be an issue with kotlin data classes that may want to hash the objects anyway
(as I am using sets)
bjonnh
@bjonnh
(and that seem to be the case as turning them all into normal classes "solve" the issue)
Choubani Amir
@amirensit
Hello.
Did anyone try to import multi maven spring boot project using intellij community edition ?
Unable to find find projects recursively
Konstantin Bläsi
@konstantinblaesi
any idea why /actuator/metrics/vm.threads.states gives me a 404 ? /actuator/metrics displays the list, but I cannot get the details for a metric?
Ingo Griebsch
@ingogriebsch

Hi all, I want to test a special flyway migration step....

Me again, is someone maybe having an idea how I could solve my problem? Or is my question to special? Am I asking in the wrong channel? Would be nice to get some feedback! :)

wobushiguojing
@wobushiguojing
hi
James Howe
@OrangeDog
The 2.2.2 -> 2.2.3 update appears to have broken properties loading via @ActiveProfiles("test"). Maybe #19556 but there are no commas involved...
Olan Byrne
@olanb7
hey all - is there any way to enable the use of 'block()' on a flux/mono with spring boot 2.2? trying to override a method in a third party lib..
James Howe
@OrangeDog
As far as I can tell, @ActiveProfiles used to replace the profiles, but now it adds to them
Ah yes: #19788
Niels Doucet
@NielsDoucet
Just to double check: https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.1-Release-Notes#third-party-library-upgrades
Tomcat 9 is the baseline. Spring boot no longer guarantees to work with older version, right?
That’s for the embedded container though
SRITHARAN MAHENDRA BABU
@Srithar-ccs
Hi All, i am having an issue with Spring data insertion into msqyl for utf-8 character like this 𝛂, it is inserting the character into the column like this '?'
Andy Wilkinson
@wilkinsona
Sounds like an encoding problem. Have you enabled UTF-8 or similar everywhere?
SRITHARAN MAHENDRA BABU
@Srithar-ccs
yeah , i have enable utf-8 in the mysql database, like set name utf-8 and also tried utf8mb4
i think it has got something to do with java hibernate pipleline, because when i try to insert the data from datagrip it works fine
which is like the DB is configured fine, i think
nightswimmings
@nightswimmings
Hi! how can I force one of my app's @Configuration @Beans to be loaded before an @AutoConfiguration one? My local bean instantiation actions a side-effect that is relevant to the @AutConfiguration bean runtime instantiation logic. The thing is both have as a dependency a previosusly autoconfigured bean
nightswimmings
@nightswimmings
Is there such a thing as @IsDependedBy as opposed to @DependsOn? I cannot edit my third-party libs