Spring Boot 2 0 0 Upgrade Notes
Spring Boot 2 0 0 Upgrade Notes
2.0 .0 .RE LE AS E
Upgrade
7. Patch
8. Congratulations
Previous Versions
Current Versions
Following notes are extract from different release notes of Spring Boot 2.0.0 Releases.
Actuator
Already covered at large in the migration part, Actuator
now runs natively on Spring MVC, Spring WebFlux and Jersey.
Adding the dependency and enabling web endpoints (using for
instance endpoints.default.web.enabled) is all that’s
required.
- Security Upgrade - https://github.com/spring-projects/spring-boot/wiki/Spring-
Boot-2.0.0-M4-Release-Notes#security
below)
M6
After some feedback from the community, the default
management.endpoints.web.base-path has been changed from
"/application" to "/actuator" to avoid collision with user-
defined mappings (see #10970).
RC1
Spring Security default user
We’ve restored the ability to auto-configure a single user
via configuration keys. These can be found at
spring.security.user.
- OAuth 2.0 Support
Functionality from the Spring Security OAuth project is being migrated to core Spring
Security. OAuth 2.0 client support has already been added and additional features will
be migrated in due course.
RC1
Jackson
SerializationFeature.WRITE_DATES_AS_TIMESTAMPS is now
disabled by default.
Date conversion
It is possible to control the date format for date types
from well-known packages (java.util, org.joda.time and
java.time) using a single property.
Renamed
==========================
CONDITION EVALUATION DELTA
==========================
Spring Cloud
https://github.com/spring-projects/spring-cloud/wiki/Spring-Cloud-Finchley-Release-
Notes
spring-cloud-starter-netflix-eureka-client
Java 9 vs Java 8
<properties>
<!-- Generic properties -->
<java.version>9</java.version>
</properties>
java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
Hibernate typically requires JAXB that’s no longer provided by default. You either need
to add a dependency to your project:
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
</dependency>
Course Project Updates
application.properties
management.endpoints.web.exposure.include=*
In HAL Browser, enter the actuator URL to browse.
Spring Security
#security.user.name=username
#security.user.password=password
spring.security.user.name=username
spring.security.user.password=password
+ auth.inMemoryAuthentication()
+
.passwordEncoder(NoOpPasswordEncoder.getInstance())
+ .withUser("in28Minutes").password("dummy")
Internationalization!
@GetMapping("/hello")
public String helloWorld() {
return msgSource.getMessage("msg.hello", null,
"Whoops!", LocaleContextHolder.getLocale());
}
@Bean
public LocaleResolver localeResolver() {
AcceptHeaderLocaleResolver localeResolver = new
AcceptHeaderLocaleResolver();
localeResolver.setDefaultLocale(Locale.US);
return localeResolver;
}
spring.jackson.serialization.write-dates-as-
timestamps=false
spring.messages.basename=messages
- <artifactId>spring-cloud-starter-zuul</artifactId>
+ <artifactId>spring-cloud-starter-netflix-
zuul</artifactId>
- <artifactId>spring-cloud-starter-feign</artifactId>
+ <artifactId>spring-cloud-starter-
openfeign</artifactId>
- <artifactId>spring-cloud-starter-eureka</artifactId>
+ <artifactId>spring-cloud-starter-netflix-eureka-
client</artifactId>
-
<artifactId>spring-cloud-starter-eureka-
server</artifactId>
<artifactId>spring-cloud-starter-netflix-eureka-server</
- <artifactId>spring-cloud-starter-ribbon</artifactId>
+ <artifactId>spring-cloud-starter-netflix-
ribbon</artifactId>
- <artifactId>spring-cloud-starter-hystrix</artifactId>
+ <artifactId>spring-cloud-starter-netflix-
hystrix</artifactId>
Command to run
35.SpringWebServices
02.IntroductionToSpringFramework
03.IntroductionToSpringBootFramework
05.BasicsOfRestfulWebServices
06.AdvancedFeatures-RestfulWebServices
08.ConnectingRestfulServiceToJPA
36.SpringBootMasterClass (TODO)
05.Spring-Boot-Advanced
07.Connecting-Spring-Boot-Web-Application-To-JPA
09.Appendix.Spring-Introduction-In-10-Steps
37.SpringMasterClass
01.IntroductionToSpringFramework
02.SpringCoreInDepth
06.IntroductionToSpringBootFramework
08.Spring-JDBC-And-Upgrade-To-JPA
39.HibernateWithJPAandSpringBoot
01.IntroductionToSpringBootFramework
02.JourneyFromSpringJDBCToJPA
04.JPA-In-Depth
09.Appendix.IntroductionToSpringFramework
40.SpringMicroservices
02.RestfulWebServices
03.MicroservicesWithSpringCloud
99.01.APPENDIX.IntroductionToSpringBootFramework
New Videos Created/Updated
Microservices
03.MicroservicesWithSpringCloud-Step-16—Configure-JPA-and-Initialized-Data
03.MicroservicesWithSpringCloud-Step-21—Using-Feign-REST-Client-for-
Service-Invocation
03.MicroservicesWithSpringCloud-Step-22—Setting-up-client-side-load-
balancing-with-Ribbon
03.MicroservicesWithSpringCloud-Step-26—Connecting-Currency-Conversion-
Microservice-to-Eureka
Microservices (Contd...)
03.MicroservicesWithSpringCloud-Step-27—Connecting-Currency-Exchange-
Microservice-to-Eureka
03.MicroservicesWithSpringCloud-Step-36—Implementing-Spring-Cloud-
Sleuth
03.MicroservicesWithSpringCloud-Step-39—Setting-up-Distributed-Tracing-
with-Zipkin
03.MicroservicesWithSpringCloud-Step-41---Using-Zipkin-UI-Dashboard-to-
trace-requests
JPA
04.JPA-In-Depth-Step-59—Transaction-Management—ACID-Properties
https://github.com/in28minutes/spring-microservices/blob/master/spring-boot-2-0-
0-Upgrade-notes.md#patch
Congratulations
You have made a great choice in learning with in28Minutes. You
are joining 150,000+ Learners learning everyday with us.
on APIs, Web Services and Microservices with Spring, Spring Boot and
Spring Cloud.
Become an expert on Spring Boot, APIs, Microservices and Full
Stack Development