Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 21:57
    mbhave assigned #19421
  • 21:48
    dreis2211 commented #20147
  • 21:18
    scottfrederick assigned #20244
  • 21:17
    scottfrederick demilestoned #20172
  • 21:17
    scottfrederick milestoned #20172
  • 21:14
    scottfrederick closed #20172
  • 21:14

    scottfrederick on master

    Configure buildpack to use targ… (compare)

  • 21:07
    spring-issuemaster unlabeled #20316
  • 21:07
    spring-issuemaster labeled #20316
  • 21:05
    pankajpandey013 commented #20316
  • 19:52
    snicoll milestoned #20179
  • 19:52
    snicoll demilestoned #20179
  • 19:49
    wilkinsona reopened #20244
  • 19:49
    wilkinsona closed #20024
  • 19:49
    wilkinsona commented #20024
  • 19:49
    wilkinsona closed #20199
  • 19:48
    wilkinsona commented #20316
  • 19:21
    mbhave edited #20303
  • 19:21
    mbhave edited #20303
  • 19:07
    mbhave labeled #20316
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...
Stéphane Nicoll
@snicoll
you can do that
Altough getting a bean programmatically is not really a mainstream use case IMO
(or getting a reference to the ApplicationContext for that matter)
Subodh Sharma
@subodh_atg_twitter

I am getting the below response when run application on Netty server. But i do not want to include the xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" if value is null/blank.
<employeeResponse>
<employee>
<empId>1000</empId>
<firstName xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<lastName xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<salary xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<status xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
</employee>
</employeeResponse>

When I run the same application on Netty Server, getting the proper response. Can anyone help me to get the below response on the netty server?
<employeeResponse>
<employee>
<empId>1000</empId>
<firstName />
<lastName />
<salary />
<status />
</employee>
</employeeResponse>