Lab: Update the base Spring Boot Version ‐ 3: Compile and Assess - shinyay/spring-boot-2-7-to-3-1-upgrade GitHub Wiki
3: Compile and Assess We've made our Small Change. Now let's Compile and Assess!
Compile the code Now Compile the code, but as we discussed in the lesson we're going to skip running the tests for now. Don't worry, we'll have a whole set of lessons and labs dedicated to addressing any testing issues we might introduce.
Open the Terminal and compile, skipping the tests:
[~/exercises] $ ./mvnw clean compile So, what happened?
Assess the results Now we can answer the same questions outlined in the first lab:
Did our code compile?
YES!
If we had not taken the time to make the Spring Security Changes you would have seen output like the below:
[INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] .../src/main/java/example/cashcard/SecurityConfig.java:[6,72] cannot find symbol symbol: class WebSecurityConfigurerAdapter location: package org.springframework.security.config.annotation.web.configuration [ERROR] .../src/main/java/example/cashcard/SecurityConfig.java:[18,37] cannot find symbol symbol: class WebSecurityConfigurerAdapter [INFO] 2 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.751 s [INFO] Finished at: 2023-09-21T14:31:06-06:00 [INFO] ------------------------------------------------------------------------ Nice! Aren't you glad we took those preparatory steps to ensure this goes smoothly?