File tree Expand file tree Collapse file tree 5 files changed +14
-12
lines changed
Expand file tree Collapse file tree 5 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 1616
1717 <!-- DEPENDENCIES VERSION -->
1818 <jdk .version>17</jdk .version>
19- <cds .services.version>1.34 .1</cds .services.version>
20- <spring .boot.version>2.7.11 </spring .boot.version>
21- <cloud .sdk.version>4.12 .0</cloud .sdk.version>
22- <xsuaa .version>2.13.9 </xsuaa .version>
19+ <cds .services.version>2.0 .1</cds .services.version>
20+ <spring .boot.version>3.0.7 </spring .boot.version>
21+ <cloud .sdk.version>4.14 .0</cloud .sdk.version>
22+ <xsuaa .version>3.0.1 </xsuaa .version>
2323 <cf-java-logging-support .version>3.7.0</cf-java-logging-support .version>
2424 <cds .install-cdsdk.version>6.8.2</cds .install-cdsdk.version>
2525 </properties >
Original file line number Diff line number Diff line change 8383
8484 <dependency >
8585 <groupId >com.sap.hcp.cf.logging</groupId >
86- <artifactId >cf-java-logging-support-servlet</artifactId >
86+ <artifactId >cf-java-logging-support-servlet-jakarta </artifactId >
8787 <version >${cf-java-logging-support.version} </version >
8888 </dependency >
8989
Original file line number Diff line number Diff line change 11package my .bookshop ;
22
3- import javax .servlet .DispatcherType ;
4-
53import org .springframework .boot .SpringApplication ;
64import org .springframework .boot .autoconfigure .SpringBootApplication ;
75import org .springframework .boot .web .servlet .FilterRegistrationBean ;
86import org .springframework .context .annotation .Bean ;
97
108import com .sap .hcp .cf .logging .servlet .filter .RequestLoggingFilter ;
119
10+ import jakarta .servlet .DispatcherType ;
11+
1212@ SpringBootApplication
1313public class Application {
1414
Original file line number Diff line number Diff line change 11package my .bookshop .config ;
22
3+ import static org .springframework .security .web .util .matcher .AntPathRequestMatcher .antMatcher ;
4+
35import org .springframework .boot .autoconfigure .condition .ConditionalOnWebApplication ;
46import org .springframework .context .annotation .Bean ;
57import org .springframework .context .annotation .Configuration ;
@@ -16,10 +18,8 @@ public class WebSecurityConfig {
1618
1719 @ Bean
1820 public SecurityFilterChain configure (HttpSecurity http ) throws Exception {
19- return http .requestMatchers () //
20- .antMatchers ("/actuator/health" ) //
21- .antMatchers ("/swagger/**" ) //
22- .and ().csrf ().disable ().authorizeRequests ().anyRequest ().permitAll ().and ()
21+ return http .securityMatchers ().requestMatchers (antMatcher ("/actuator/health" ), antMatcher ("/swagger/**" )) //
22+ .and ().csrf ().disable ().authorizeHttpRequests ().anyRequest ().permitAll ().and ()
2323 .build ();
2424 }
2525}
Original file line number Diff line number Diff line change 33import static cds .gen .adminservice .AdminService_ .AUTHORS ;
44import static org .junit .jupiter .api .Assertions .assertEquals ;
55import static org .junit .jupiter .api .Assertions .assertThrows ;
6+
67import java .math .BigDecimal ;
78import java .util .Collections ;
8- import javax . annotation . Resource ;
9+
910import org .junit .jupiter .api .Test ;
1011import org .junit .jupiter .api .extension .ExtendWith ;
1112import org .springframework .boot .test .autoconfigure .web .servlet .AutoConfigureMockMvc ;
2425import cds .gen .adminservice .OrderItems ;
2526import cds .gen .adminservice .Orders ;
2627import cds .gen .adminservice .Orders_ ;
28+ import jakarta .annotation .Resource ;
2729
2830@ ExtendWith (SpringExtension .class )
2931@ SpringBootTest
You can’t perform that action at this time.
0 commit comments