In this article, let's discuss how to run a Docker build faster with a simple tip.
Let’s assume we are containerizing an Angular application. We created a Dockerfile in the project’s root directory:
Tips, Expertise, Articles and Advice from the Pro's for Your Website or Blog to Succeed
In this article, let's discuss how to run a Docker build faster with a simple tip.
Let’s assume we are containerizing an Angular application. We created a Dockerfile in the project’s root directory:
Let's say that we have a UserController class with two GET endpoints:
xxxxxxxxxx
public class User {
private Integer id;
private String name;
private Date dateOfBirth;
private String city;
// constructors, getters & setters are ignored
}
public class UserController {
UserService userService;
value = "/user/{id}", method= RequestMethod.GET) (
User getUser( ("id") String id){
return userService.getUser(id);
}
value = "/users", method= RequestMethod.GET) (
List<User> getAllUsers(){
return userService.getAllUsers();
}
}