⚡ Spring Java Angular Interface
- Angular client with Java Spring boot back-end used to display simple list of users
- Note: to open web links in a new window use: ctrl+click on link
- Displays Java back end user data in a front end Angular list.
- Backend: change directory to
/springboot-backend
and run java code
- Frontend: run
ng serve
from /angular-frontend
UserController
class to get a list of all users
public class UserController {
@Autowired
private UserRepository userRepository;
@GetMapping("users")
public List<User> getUsers() {
return this.userRepository.findAll();
}
}
- Backend java user data passed to frontend
- Status: Working. Updated may 2021.
- To-Do: Nothing
- This project is licensed under the terms of the MIT license.