Upgrade Spring Boot Angular OAuth2 Social Login Application to the Latest Version

In the previous tutorial series Part 1, Part 2, and Part 3. we have developed a Spring Boot Angular Social Login application with Angular 10 and Spring Boot 2.3.x. Since then Angular 11 and Spring Boot 2.4 has been released. In this article, we are going to upgrade our Spring Boot Angular application to the latest versions.

Upgrade to Angular 11

You can find the instructions for upgrading angular from one version to another here.

To upgrade our Angular 10 application to Angular 11, we can do the following steps:

  • Rename the project folder angular-10-social-login to angular-11-social-login
  • Open angular.json file and replace all Angular10SocialLogin to Angular11SocialLogin
  • Upgrade angular to the latest version with the following command
ng update @angular/core @angular/cli

Upgrade to Spring Boot 2.4.0

The Spring Boot 2.4.0 release notes and upgrade instructions can be found here. In this version, the processing of application properties and YAML files has been changed. If you have profile-specific properties, then you may need to refer to the Spring Config Data Migration Guide.

To upgrade our application, we just need to update the spring-boot-starter-parent version to 2.4.0 in the pom.xml

	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>2.4.0</version>
		<relativePath /> <!-- lookup parent from repository -->
	</parent>

Source Code

https://github.com/JavaChinna/spring-boot-angular-oauth2-social-login-demo

Conclusion

That’s all folks. In this article, we have upgraded our Spring Boot Angular application to the latest versions.

Thank you for reading.

Read Next: How to Secure Spring Boot Angular Application with Two Factor Authentication

Leave a Reply