Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 02:39
    spring-projects-issues unlabeled #31065
  • 02:39
    spring-projects-issues labeled #31065
  • 02:36
    venkatjavaji commented #31065
  • 02:35
    venkatjavaji commented #31065
  • 01:56
    philwebb edited #30644
  • 01:55
    philwebb labeled #31067
  • 01:40
    lulumatous edited #31068
  • 01:14
    spring-projects-issues labeled #31068
  • 01:09
    lulumatous opened #31068
  • May 16 21:24
    spring-projects-issues labeled #31067
  • May 16 21:24
    XenoAmess edited #31067
  • May 16 21:24
    XenoAmess opened #31067
  • May 16 20:04
    philwebb commented #29036
  • May 16 19:57
    garyrussell commented #29080
  • May 16 19:18
    philwebb edited #30572
  • May 16 19:18
    philwebb edited #30572
  • May 16 19:07
    philwebb commented #13470
  • May 16 19:07
    philwebb commented #13470
  • May 16 18:22
    wilkinsona closed #30424
  • May 16 18:22

    wilkinsona on main

    Upgrade to Spring REST Docs 3.0… (compare)

Vyacheslav N. Boyko
@bvn13
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
    registry
      .addResourceHandler("/files/**")
      .addResourceLocations("file:/opt/files/");
 }
hope it helps you
Jacques-Etienne Beaudet
@jebeaudet
@bclozel looks like it's an issue with our internal maven repo, never seen that one before so didn't think to look there. By switching to maven central it downloaded the release properly. thanks and sorry for the noise!
Stéphane Nicoll
@snicoll
This message was deleted
Jacques-Etienne Beaudet
@jebeaudet
Regarding the previous message, our internal repository was configured with maven central in http and this is not supported anymore as of January 15th, 2020 https://support.sonatype.com/hc/en-us/articles/360041287334. All I had to do is point to the proper upstream maven repository and it worked. I'm guessing mvnrepository might have the same problem!
Scott Frederick
@scottfrederick
@jebeaudet Glad you got it resolved. Note that if your internal repo is also mirroring repo.spring.io (e.g. for Spring milestones or snapshots), you’ll need to make a similar change. https://spring.io/blog/2019/09/16/goodbye-http-repo-spring-use-https
JavaBaseReviewCN
@xuanjinnan
guys,I want create log of my normal spring boot with strategy of saveing a month log,example day,I want it is from 2019-12-22 to 2020-01-21 and tomorrow 2019-12-23 to 2020-01-22,better can study at a offical URL,I don't find it!
Himanshu Shukla
@himanshushukla254
Hi, I want to run multiple short-lived java applications in isolation.
is there any particular framework / approach I should follow ?
Vyacheslav N. Boyko
@bvn13
@xuanjinnan you could search in google by "slf4j log4j rotation" https://examples.javacodegeeks.com/enterprise-java/log4j/log4j-rotation-example/ is an example
@himanshushukla254 what kind of isolation do you prefer? maybe Docker?
Himanshu Shukla
@himanshushukla254
@bvn13 - no, they are very small applications. Dockerizing them requires a lot of time and effort
they are like health monitors which were running based on cron. Now, we are migrating them to QuartzScheduler but i can see a lot of logging issue.
Since each file is configuring their own log4j and DomConfigurator/ PropertyConfigurator changing the whole log tree structur.
at first level, logger isolation is also enough
Vyacheslav N. Boyko
@bvn13
@himanshushukla254 Do you place your applications into one jar? If not you could adjust logging into separated folders.
Himanshu Shukla
@himanshushukla254
@bvn13 There are multiple jar files, we are loading the application classes using dynamic class loader. however, there can be a jar from where we are loading more than one classes
Vyacheslav N. Boyko
@bvn13
@himanshushukla254 did you try to use different FileAppenders for your applications?
Himanshu Shukla
@himanshushukla254
@bvn13 yes, i tried it. There are some places where we are using DOMConfigurator also and as per my understanding it changes the whole log tree.
and because of this, application logs are getting messed up.
@bvn13 if i am configuring the property other files, the main logger is also getting changed to the new property i added.
Michael Vandendriessche
@miva2
Hello everyone, I have a question about using Microsoft Azure Storage with Spring-boot.
Can anyone point out the difference between following 2 dependencies?
azure-storage-spring-boot-starter (as used in this example https://github.com/microsoft/azure-spring-boot/tree/master/azure-spring-boot-starters/azure-storage-spring-boot-starter)
azure-storage-spring-boot-starter (https://docs.microsoft.com/en-us/azure/java/spring-framework/spring-boot-starters-for-azure)
I want to save .pdf and .properties files and then read them.
I've seen both being used but don't know which one is better for me to use.
Thanks in advance!
Ahmed Rebai
@Rebaiahmed
Hello everyone , I have a question : Spring data Mongodb how to find the last element inserted !
Stéphane Nicoll
@snicoll
@Rebaiahmed there is a #spring-data channel for questions like that. I believe this SO answer should help you: https://stackoverflow.com/questions/4421207/how-to-get-the-last-n-records-in-mongodb
Konstantin Bläsi
@konstantinblaesi
transaction propagation REQUIRES_NEW requires a new/separate connection from the db connection pool is that right?
Konstantin Bläsi
@konstantinblaesi
I think we were running into some deadlock situation with the hikari connection pool because we were using REQUIRES_NEW in places we should not have and too many such transactions were somehow nested for an API call?
Michael Vandendriessche
@miva2
Oops, sorry, I mentioned the same dependency twice in my earlier question.
I would like to know the differences between the spring-azure-starter-storage and azure-storage-spring-boot-starter dependencies. After some more research, and some rubberducking, I think I need the spring-azure-starter-storage as mentioned in this article https://docs.microsoft.com/en-us/azure/java/spring-framework/configure-spring-boot-starter-java-app-with-azure-storage.
Andrew Jackson
@sonAndrew
Hey @everyone I truly need help with this simple code sample that I cannot see a problem with.
Screen Shot 2020-01-21 at 10.30.58 AM.png
I got this error
Screen Shot 2020-01-21 at 10.30.44 AM.png
boda2004
@boda2004
@sonAndrew can you try replacing conversion d with f and probably change howMany type from int to float/double?
also i suppose it's about java in general and not spring-boot specific :)
Andrew Jackson
@sonAndrew
Hey @boda2004 the variable howMany is supposed to only hold an integer
boda2004
@boda2004
but why you try to format integer with two digits after dot?
Andrew Jackson
@sonAndrew
LMFAO!!! THANK YOU SO MUCH!!!
That was the problem I didn't realize it was their.
Michael Vandendriessche
@miva2
A second pair of eyes can help a lot.
Andrew Jackson
@sonAndrew
Yes and I thank you kind Sir. ありがとごさいます
Asgar Javadov
@asgarj
Hi I'm upgrading spring-boot from 2.1.X to 2.2.4.Release and I had a custom Endpoint which is removed from exposure.exclude and added into exposure.include in a BeanPostProcessor. Now that I'm moving away from @ConditionalOnEnabledEndpoint to @ConditionalOnAvailableEndpoint it's returning 404 and is not actually exposed. I guess available endpoint is the combination of enabled and exposed. With @ConditionalOnEnabledEndpoint it works fine, so I assume it's enabled. It's also exposed in the BeanPostProcessor. My guess of the problem is that by the time of Condition is evaluated, the bean processor has not exposed it. But how to solve this problem? FYI, this is in an internal spring-boot library.
Alessandro Vermeulen
@spockz
Does anyone know how to get a bean defined in a dependency (autoconfigure) loaded when using GraalVM with https://github.com/making/graalvm-springmvc-blank ? I've started with the demo app and added our autoconfigure which contains many bean definitions. When I try to import them they are not available and the injection fails.
Andy Wilkinson
@wilkinsona
@asgarj Can you expand a bit on what exactly your BPP is doing please?
Sivamaniyan
@Sivamani180915
image.png
While configring Tomcat 9 I am getting this issue pls help me out
Tomcat 9.0.26
Alex Harrison
@alexharrison-js
anyone have a simple quick solution to this error with spring security auth redirects?
.UserRedirectRequiredException: A redirect is required to get the users approval'
Jesper Bränn
@Yopi
Hello! I'm trying to upgrade spring boot to 2.2.2, but I've run into a strange CORS issue. It seems like when the preflight request contains the "Access-Control-Request-Method: POST" header I get an HttpMessageNotReadableException, as if Spring was trying to run the actual RestController instead. Not sure what I am doing wrong
Brian Clozel
@bclozel
@Yopi it was a bug in Spring Framework, it's been fixed already in Spring Boot 2.2.3