A collection of useful Java and Java EE related information.
Oracle Java API docs:
http://docs.oracle.com/javase/8/docs/api...index.html
Collections:
http://docs.oracle.com/javase/tutorial/c...index.html
A summary of Java Collections:
https://stackoverflow.com/questions/2197...ould-i-use
AddressBook application using Spring Boot, Web Security (basic authentication) and JPA:
http://web.archive.org/web/2017082322224...ication-1/
AddressBook - creating a AngularJS UI for our application:
http://web.archive.org/web/2017082114184...ication-2/
Spring Boot - Students using fakedata:
Video: https://www.youtube.com/watch?v=Ke7Tr4Rg...e7Tr4RgRTs
Source code: https://github.com/djdjalas/SpringBootIn...ree/master
N-tier architecture
Controller Layer (@RestController) / Handles HTTP methods
|
|
Service Layer (@Service) / Business Logic
|
|
DAOLayer (@Repository) / Data Access
|
|
Firebird / MySQL / mongoDB / Fake Data
The main Spring Boot app class looks like this:
@SpringBootApplication
public class App {
public static void main(String[] args) {
SpringApplication.run(App.class, args);
}
}
The business objects are also known as "Entity" objects. If you use JPA you could annotate those with @Entity and primary key field with @Id to do the magic for you.
Spring Boot - Students using Databases with Profiles:
Video: https://www.youtube.com/watch?v=ZA9WpK-l...-lxXM&t=0s
Source code: https://github.com/djdjalas/SpringBootIn...tergration
@Qualifier("firebird")
To test REST endpoint's with web browser plugins
Chrome: Postman
Firefox: RESTClient
JSP Standard Tag Library
https://www.tutorialspoint.com/jsp/jsp_s...ibrary.htm
|