Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 19:55
    Hakky54 review_requested #20300
  • 19:36
    snicoll review_request_removed #20300
  • 19:25
    Hakky54 review_request_removed #20300
  • 19:25
    Hakky54 review_requested #20300
  • 19:23
    Hakky54 review_requested #20300
  • 18:51
    Hakky54 edited #20300
  • 18:34
    Hakky54 synchronize #20300
  • 18:30
    Hakky54 synchronize #20300
  • 18:19
    Hakky54 synchronize #20300
  • 18:17
    spring-issuemaster labeled #20300
  • 18:16
    pivotal-issuemaster commented #20300
  • 18:14
    Hakky54 edited #20300
  • 18:13
    pivotal-issuemaster commented #20300
  • 18:13
    Hakky54 opened #20300
  • 15:07
    spring-issuemaster labeled #20299
  • 15:05
    coco0817 edited #20299
  • 15:05
    coco0817 opened #20299
  • 03:38
    mikesmithson synchronize #20297
  • Feb 22 23:17
    jvasileff commented #6516
  • Feb 22 17:05
    mikesmithson commented #19979
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
nightswimmings
@nightswimmings
Or @InitializeBefore
nightswimmings
@nightswimmings
It must be a way with BeanPostProcessor and InitializzingBean
Scott Frederick
@scottfrederick
@nightswimmings you could make your app configuration auto-configuration (e.g. register it in META-INF/spring.factories org.springframework.boot.autoconfigure.EnableAutoConfiguration and use @AutoConfigureBefore
Jacques-Etienne Beaudet
@jebeaudet
Hey! Am I the only one having problem fetching 2.1.12.RELEASE from mvn central? I see it here https://search.maven.org/artifact/org.springframework.boot/spring-boot-dependencies/2.1.12.RELEASE/pom but not here https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-dependencies and I get release not found when trying to build it in my project. Any sync issue going on?
nightswimmings
@nightswimmings
@scottfrederick mmmh that is pretty clever. Thanks for the suggestion!
nightswimmings
@nightswimmings
Looks like it has no effect. At least on test (spring.factories on main)
bjonnh
@bjonnh
Is there a way to catch error at the moment of bean creation and change application behavior? (I want the application to have less functions if that resource isn't available)
(it as a JavaFX/Spring application, if it cannot connect to a specific database, a specific tab shouldn't appear)
nightswimmings
@nightswimmings
debug: true shows it as an unconditional autoconfigration, but ConfigureBefore does not work
Brian Clozel
@bclozel
@jebeaudet mvnrepository is a 3rd party website indexing maven repositories. maven.org is the source of truth. Issues have been recently reported on https://issues.sonatype.org/ about 404s/CDN sync issues but it seems that artifacts are there. Do you have an exact error message?
nightswimmings
@nightswimmings
@scottfrederick Got it with
    @Bean
    public BeanFactoryPostProcessor dependsOnPostProcessor() {
        return (beanFactory) -> beanFactory.getBeanDefinition("AutConfiguredBean").setDependsOn("locallyConfiguredBean");
    }
Andy Wilkinson
@wilkinsona
@konstantinblaesi Typo? The metric is named jvm.threads.states not vm.threads.states.
Sivamaniyan
@Sivamani180915
Hi,
I installed tomcat 9.0.26 in RHEL5.
The catalina pid is not creating
Any suggestions
dadochudy
@dadochudy
hi i get mock server which is jar but i'm getting problem to start webscoket i always get 101 error can someone quickly point me where i can check cors ?
boda2004
@boda2004
101 is not error (if you mean http code)
dadochudy
@dadochudy
websocket uses http handshake
ti should switch from http handshake to websocket connection if understand it correctly
boda2004
@boda2004
i assume that you're talking about http code, and thi is a part of typical websocket connection process
like
HTTP/1.1 101 Switching Protocols
Upgrade: websocket 
Connection: Upgrade
dadochudy
@dadochudy
i'm not java developer i just get the mockserver but when i try to connect from front end to webscoket i get error 101
if i unzip jar file and add some dependency do i need to compile it :D
Magnus Persson
@magnusp
I'm in a situation where I need to validate a hmac based on http headers and the body. From what I understand a WebFilter should not read the body unless it intends to end the chain. Is there any way around this?
Magnus Persson
@magnusp
And as I wrote that google gave me a hit on using ServerWebExchangeDecorator + ServerHttpRequestDecorator. I think overriding getBody and using Flux#cache should be sufficient
Magnus Persson
@magnusp
.. or not. Bah!
Michael McFadyen
@michaelmcfadyen
Yeah, I've implemented a hmac validation filter in webflux. Have you taken a look at HandlerFilterFunction?
Magnus Persson
@magnusp
@michaelmcfadyen i'm down the path of using the @RestController annotation. I've gotten as far as using a request decorator to hook into the getBody flux and calculating the hmac once it's read. Problem now is that I can't find a good way to emit an error. I emit an ServerWebInputException but this is logged as an error by the invocation handler around my controller - i'm having the body injected as a parameter and it is at this point it is read.
wouldn't happen to have that filter out in the wild so that I can take a look at it? :)
Michael McFadyen
@michaelmcfadyen
sorry, not in a position to share the code. What I can say is that with a HandlerFilterFunction you get access to ServerRequest which has methods for extracting the body. HandlerFilterFunction need to be applied in the router though so I don't believe they are compatible with using annotation based webflux endpoints
Magnus Persson
@magnusp
No worries. I worked around it by not having the body extracted as part of creating the parameters for the controller method. Another approach could be to have the requestbody @Valid and create a validator for it. But problem solved any way :)
X.Sun
@XSun771
should it not happen that use applicationContext in a Bean to use its method "getBean()"?Why it is so complex, for example, to implement the ApplicationContextAware. why is it still not achieved that use @Autowired ApplicationContext context to get a context? Thanks...