-
Notifications
You must be signed in to change notification settings - Fork 4
Spring Framework Notes
Jinlian(Sunny) Wang edited this page Mar 2, 2019
·
23 revisions
- Exception Handling in Spring REST Web Service Best practices over how to handle exceptions in web services using spring framework.
- Creating Asynchronous Methods How to call multiple services through RestTemplate in parallel and continue once all of the calls come back.
- Guide To CompletableFuture Details on how to use CompletableFuture and related enhancements in Java8 and Java 9.
- Uploading files to AWS S3 Bucket using Spring Boot End to end of how to create a AWS IAM user and S3 bucket and then how to upload a file to S3 bucket with source code.
- Disabling SSL Certificate Validation in Spring RestTemplate
- Validation in Spring Boot how to do validation using Spring validator framework by JSR 380, and it also shows how to do integration test(testing at the web/controller layer by mocking out the services) for the validation.
-
Testing the Web Layer How to run integration test(testing at the web/controller layer by mocking out the services) powered by spring boot test, use
mvn surefire-report:report site -DgenerateReports=false. - Mockito Tutorial Teach us how to use Mockito for mocking for testing, in particular, it has a section over how to integrate it with JUnit by testing the service layer.
- Unit Testing With Mockito How to create unit testing cases through Mockito, at both the model layer and controller layer(no service layer though). It also shows how to mock void method using Spy, and how to unit test over method throwing exceptions.
- Quick Guide to Spring Bean Scopes Talk about 6 different @Scope while defining a @Bean, how they are different from each other. The default is Singleton.