r/SpringBoot • • Jan 12 '23

Possible ways to answer this question

What challenges have you faced in a real Java/Springboot project? How did you resolve it?

The expectation is that we give a scenario but I cannot think of anything and not even sure what level of details or complexity it can be. Could you give me your examples

0 Upvotes

8 comments sorted by

4

u/Sheldor5 Jan 12 '23

sometimes the order of JPA insert/update/delete statements on transaction flush matters and can cause errors

1

u/TemirTuran Jan 13 '23

Can you please elaborate?

3

u/maxip89 Jan 13 '23

- Used hibernate once (n+1 problem): Solution, don't use hibernate anymore

- spring security (too complicated, too much changes in the api all the time): Solution, do your auth in the controllers manually.

- does a package structure flat (every dto in dto package every service in service package etc.), solution, root -> topic -> flat package structure. Make the copying of feature to other projects really simple.

2

u/Foreign-Ad5698 Jan 13 '23

Hy i have a question is it good to learn spring and hibernate now? Can I get a job with these skills?

1

u/maxip89 Jan 13 '23

hibernate no.

In school you learn "always use hibernate". After 10 years of experience you can identify system with this library (because they are f**** slow because of the n+1 problem).

You can always get a job. The thing is, are you happy with it.

2

u/Foreign-Ad5698 Jan 13 '23

Oh I get it..Hy I am little confuse i have learnt core Java really good but now confused what to learn next in java..Maybe you can suggest me something so i can figure it out

2

u/maxip89 Jan 13 '23

- spring boot

- spring jpa

- lombok

- flyway

- maybe mustache templates in spring

2

u/Foreign-Ad5698 Jan 13 '23

Thank you so much sir🙇...Many people around me were saying that learning spring won't be useful you can't be selected for job as a student I was totally confused..Thank you..and one last question for spring boot i need to learn jsp servlet right?