Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 22 21:32
    philwebb commented #18264
  • Sep 22 19:39
    wilkinsona closed #18301
  • Sep 22 19:39

    wilkinsona on master

    Ensure the use of UTF-8 encodin… (compare)

  • Sep 22 19:26
    wilkinsona commented #18301
  • Sep 22 19:25
    wilkinsona commented #18301
  • Sep 22 19:24
    wilkinsona commented #18301
  • Sep 22 19:23
    wilkinsona assigned #18301
  • Sep 22 18:46

    wilkinsona on master

    Polish assertions in ImageBanne… (compare)

  • Sep 22 16:47

    philwebb on master

    Use hexadecimal for string comp… (compare)

  • Sep 22 15:57
    snicoll demilestoned #18233
  • Sep 22 15:57
    snicoll milestoned #18233
  • Sep 22 12:02
    wilkinsona reopened #18301
  • Sep 22 12:02
    wilkinsona commented #18301
  • Sep 22 10:31

    wilkinsona on master

    Rename test resource to be Wind… Merge branch '2.1.x' (compare)

  • Sep 22 10:31

    wilkinsona on 2.1.x

    Rename test resource to be Wind… (compare)

  • Sep 22 10:15
    wilkinsona unlabeled #18300
  • Sep 22 10:15
    wilkinsona unlabeled #18300
  • Sep 22 10:15
    wilkinsona labeled #18300
  • Sep 22 10:14
    wilkinsona closed #18300
  • Sep 22 10:14
    wilkinsona commented #18300
A C SREEDHAR REDDY
@a-c-sreedhar-reddy
@jagjeevanjohal Just started with spring. Will ask there!
Lovro Pandžić
@lpandzic
it seems 5.2.RC1+ is required for Java 13
Stéphane Nicoll
@snicoll
@lpandzic “latest” is not applicable to maintenance release. You need Spring Boot 2.2
masquino
@masquino
morning everyone! I'm trying to add newrelic to my springboot application, I have succesfully added the java agent to my docker build and it's reporting web transactions and such.. but, I don't see those transactions inner transactions.. they are all basically 100% JVM time, when they should clearly have some database time
I also don't see any database calls in the database tab
any idea of what I might be doing wrong?
HattoriHenzo
@HattoriHenzo
Hello, please I would like to have your advice between DTO or @JsonView ? Can you please provide a full case study case on @JsonView coupled with Spring Security ? Thanks in advance
James Howe
@OrangeDog
Erik Verduin
@Everduin94
Hey all, total noob coming to spring/spring-boot, does anyone have recommendations for learning both spring and spring boot?
Curry30np
@Curry30np
The most commonly used in the enterprise is mybatis?
timbo
@timbotetsu_twitter
nope
show that Hibernate has majority
Lovro Pandžić
@lpandzic
@snicoll that depends on who you ask :)
Knut Schleßelmann
@kschlesselmann
Hi! If I update my H2 from 1.4.196 to 1.4.197 i suddenly get test failures due to non existing tables … any ideas what's going on? I cannot find something in the logs :-/
timbo
@timbotetsu_twitter
save data in memory?
Lukáš Vasek
@bilak
hello, is it somehow possible to change name of Order parameter in spring web? I can find page, size even sort, but I'm not able to find order
spring:
  data:
    web:
      sort:
        sort-parameter: st
      pageable:
        page-parameter: pg
        size-parameter: sz
timbo
@timbotetsu_twitter
you mean order by?
I think sort and order just the same
Lukáš Vasek
@bilak
@timbotetsu_twitter
yes order by...where can I change it
Ajay Singh
@AjayLogic
is it good practice to pass body in DELETE request?
Andy Wilkinson
@wilkinsona
That would be unusual, in my experience. A DELETE request will typically delete the resource identified by the URI to which the request is sent. There's no extra information needed so there's no need for the request to have a body. What are you using the body for in your case?
Nguyen Minh Luan
@luanldt
yah. that my question too. DELETE only call rest delete and delete this records. It feel to weak?
Ajay Singh
@AjayLogic
@wilkinsona I'm trying to bulk delete from database , and this call will be triggered from batch job. Batch job will be provided list of resource id and I want to delete all the records in one call triggered from batch.
I also think that this approach doesn't look good then I'll have to pass all the resource id in RequestParam as Map.
Please suggest me the better approach.
Andy Wilkinson
@wilkinsona
Well it depends how RESTful you want your API to be
I was careful to say that your use of DELETE would be unusual rather than necessarily being bad
An alternative would be a POST request to a resource that knows how to perform certain actions on the database
That may end up being more RPC than REST though. Whether or not that's a problem is up to you really
Martijn Hoekstra
@martijnhoekstra
Another alternative is to POST to a resource that creates delete bundles, and then DELETE the resource returned by the POST. Whether that's worth it -- or anything -- is up to you.
Ajay Singh
@AjayLogic
Can I use POST request to delete the resources in bulk? But w3.org has described different meaning of POST. I'm really very confused.
Martijn Hoekstra
@martijnhoekstra
you can do whatever you want. That may not be in accordance with the intentions described in the HTTP spec. Whether you care about that is up to you
HattoriHenzo
@HattoriHenzo
@OrangeDog I am talking about the comparison between both patterns ?
springroll12
@springroll12
I am stuck trying to autowire a @RequestScope bean into a restTemplate interceptor. Essentially I have a named bean (@Bean(name = "rHeaders)) defined in my WebMvcConfigurer class (with @Configuration on the class). This bean uses RequestContextHolder to get the current request and extract the HttpHeaders object and return it (@RequestScope is applied to the bean). Now I am trying to autowire it into an interceptor which is added to restTemplates created with RestTemplateBuilder.build() (customized with a RestTemplateCustomizer). For some reason the autowired bean seems to always be null (@Autowired public HttpHeaders rHeaders).
springroll12
@springroll12
nevermind I'm an idiot. I forgot to make the interceptor managed by spring (@Component), so it couldn't properly autowire anything. Silly!
prog20901
@prog20901
any open source app or framework exist to build an app - write once, same code and run on PC, Web and Mobile ???
prog20901
@prog20901
https://medium.com/@benoitvallon/a-mobile-desktop-and-website-app-with-the-same-code-dc84ef7677ee . Do you know any good open source project for reference which does the same as said in the above link?
Rakesh
@rakgenius
GRANT SELECT, RELOAD, LOCK TABLES, SHOW VIEW ON 'DBA'.* TO 'readonly'@'<some ip>' IDENTIFIED BY PASSWORD <secret> WITH GRANT OPTION GRANT ALL PRIVILEGES ON 'DBB'.* TO 'readonly'@'<some IP>'
I have this grants for the user "readonly" for two databases "DBA" and "DBB"
spring can connect only to "DBB" but not "DBA" and says cant create a connection to server
any idea how to fix this?
Curry30np
@Curry30np
@timbotetsu_twitter thank you
Dhaval Shewale
@DhavalShewale
Can we expose scheduled jobs as an end-point to allow them triggering on adhoc basic from actuator end point. While I have currently implemented this feature using ControllerEndPoint, having it out of the box in the framework would be great as need to invoke a scheduled job on adhoc basis does arrive most of the times.
Dhaval Shewale
@DhavalShewale
Also it would be great to have a feature to send failure notification mail for scheduled tasks. It is easier to track failures in GUI or Rest API as users / consumers would raise an alarm for failure, however a failure in scheduled job can completely go unnoticed for few days unless the logs are monitored daily. As of now I have written a custom service to send failure notification mails but it is a good to have feature in the framework.
Dhaval Shewale
@DhavalShewale
@prog20901 While I am not sure if it's possible to reuse your frontend code as we do have different behaviors for a windows app, ios app, android app, website, etc. But you can surely reuse the backend code by exposing them as a restful webservice and invoking the same service from all the platforms.
ashraf
@ashraf-revo
hi to all , i want ask question , how should we deal with access_token after expired when using spring cloud gateway or zuul
Stéphane Nicoll
@snicoll
@luanldt not sure what you mean
Son Luong Ngoc
@sluongng
hey guys is there a specific channel for spring-batch?
nvm found it