Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 15:57
    wilkinsona commented #28709
  • 15:55
    wilkinsona commented #28709
  • 12:12
    viktorardelean commented #28709
  • 10:10
    wilkinsona edited #28841
  • 09:35
    rudy2steiner commented #28883
  • 08:01
    spring-projects-issues labeled #28832
  • 08:01
    spring-projects-issues commented #28832
  • 05:33
    ahmedmq commented #28427
  • 01:56
    spring-projects-issues labeled #28907
  • 01:52
    jonatan-ivanov edited #25476
  • 01:52
    jonatan-ivanov opened #28907
  • Dec 04 17:52
    viktorardelean commented #28709
  • Dec 04 12:13
    sudoHackIn commented #6254
  • Dec 04 09:42
    viviel edited #22885
  • Dec 04 05:46
    izeye commented #25994
  • Dec 04 02:53
    viviel commented #22885
  • Dec 03 22:05
    mbhave labeled #28739
  • Dec 03 22:05
    mbhave unlabeled #28739
  • Dec 03 22:05
    mbhave unassigned #28739
  • Dec 03 22:05
    mbhave closed #28739
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
boda2004
@boda2004
101 is not error (if you mean http code)
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
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>

I am using Spring boot
In my project Netty server is used and can not move to Tomcat server
James Howe
@OrangeDog

I don't suppose there's a way to have a fallback static error page for when your normal error page fails?

That was a no then I guess

Yogesh Patel
@YogeshPat3l_gitlab
Can anyone please help me how to serve static pages from outside the jar in spring boot ?
Vyacheslav N. Boyko
@bvn13
@YogeshPat3l_gitlab http://<server>:<port>/<static-resource>
Yogesh Patel
@YogeshPat3l_gitlab

@bvn13 This works if the static content is within the jar itself in any of the following paths

"classpath:/META-INF/resources/",
"classpath:/resources/", "classpath:/static/", "classpath:/public/"

@bvn13 What I want is to put all the static pages outside the jar
Vyacheslav N. Boyko
@bvn13
@YogeshPat3l_gitlab https://spring.io/blog/2013/12/19/serving-static-web-content-with-spring-boot :
Spring Boot will automatically add static web resources located within any of the following directories:

    /META-INF/resources/
    /resources/
    /static/
    /public/