Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 770 Vote(s) - 3.4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What's your "best practice" for the first Java EE Spring project?

#11
First of all Spring is about modularity and works best if one focuses on writing small components that do one thing and do it well.

If you follow best practices in general like:

* Defining an interface rather than abstract classes
* Making types immutable
* Keep dependencies as few as possible for a single class.
* Each class should do one thing and do it well. Big monolithic classes suck, they are hard to test and hard to use.

If your components are small and follow the dogmas above they should be easy to wire up and play with other stuff. The above points are naturally also true of the Spring framework itself.

PS

**Dont listen to the points above, they are talking about how to do whatever. Its more important to learn how to think rather than how to do something. Humans can think, repeating something is not clever, thinking is.**
Reply

#12
Whilst its been years since I have used spring, and I can't say I am a fan of it, I know that the App Fuse tool ([

[To see links please register here]

][1]) has been helpful to help people bootstrap in terms of generating all the artifacts you need to get going.


[1]:

[To see links please register here]

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through