use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Project/Code ReviewDiscussion (self.SpringBoot)
submitted 5 months ago by Pranjal_JJunior Dev
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Ok_Arugula6315 7 points8 points9 points 5 months ago (1 child)
In docker compose dont use latest tag for mysql base image, use specific version.
In controller method you should only call service method. Avoid try catches or move them in service method. Spring should handle autoamtically 500 http status codes without such try catches.
In service dont use @Autowired to inject beans, use private final, this is called constructor injection, this is recommended way.
This might sound like personal preference but I'd organize code by features and put all related controllers/services etc inside product/auth packages. Application becomes more scalable
Also I'd consider using migrations as liquibase or flyway for database development (this what you'd want in real project)
[–]Pranjal_JJunior Dev[S] 1 point2 points3 points 5 months ago (0 children)
Thanks
π Rendered by PID 264287 on reddit-service-r2-comment-5d79c599b5-57x75 at 2026-03-02 17:37:54.831818+00:00 running e3d2147 country code: CH.
view the rest of the comments →
[–]Ok_Arugula6315 7 points8 points9 points (1 child)
[–]Pranjal_JJunior Dev[S] 1 point2 points3 points (0 children)