helpermethod / spring-boot-style-guide

An opinionated guide on developing web applications with Spring Boot.
MIT License
129 stars 14 forks source link

Ideas #2

Open helpermethod opened 5 years ago

helpermethod commented 5 years ago
gabriel-rcpereira commented 3 years ago

Hi @helpermethod !

Thanks for sharing your knowledge through that repo. I believe it should be fed with more content in order to help others developers.

I would like to contribute to the project. Can I help you?

Thanks

helpermethod commented 3 years ago

Hi @gabriel-rcpereira!

I've started this repo with the intention to make this the ultimate Spring Boot guide but got carried away by other things.

I sometimes think about revisiting this project because I think such a resource can provide a lot of value.

Contributions are welcome, if you have any ideas just raise a PR!

gabriel-rcpereira commented 3 years ago

Great! I'm able to move on following your list.

Thanks!

gabriel-rcpereira commented 3 years ago

Hi @helpermethod !

I opened a new PR when you have time take look at it, please.

In order to keep our list up to date:

  • Use Spring Initializr
  • ~Do not put business logic into your controllers~
  • Use Spring Boot Actuator
  • Use JUnit5
  • ~Use AssertJ~
  • Use @Bean for object construction
  • Put @Beans into @Configuration classes
  • Use @Service for services
  • Use @Autowired in integration tests
  • @Services should be stateless.
  • Use Testcontainers. Do not use H2.
  • Use Hoverfly.

Thanks in advance!

helpermethod commented 3 years ago

Hi @gabriel-rcpereira, I hope to review your PR this weekend!