Skip to content

Commit 4a02995

Browse files
author
eugenp
committed
minor cleanup
1 parent bfdcb18 commit 4a02995

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

spring-security-rest-full/src/main/java/org/baeldung/web/metric/MetricFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class MetricFilter implements Filter {
2626
public void init(final FilterConfig config) throws ServletException {
2727
if (metricService == null || actMetricService == null) {
2828
metricService = (IMetricService) WebApplicationContextUtils.getRequiredWebApplicationContext(config.getServletContext()).getBean("metricService");
29-
actMetricService = (ICustomActuatorMetricService) WebApplicationContextUtils.getRequiredWebApplicationContext(config.getServletContext()).getBean("actuatorMetricService");
29+
actMetricService = WebApplicationContextUtils.getRequiredWebApplicationContext(config.getServletContext()).getBean(CustomActuatorMetricService.class);
3030
}
3131
}
3232

spring-security-rest-full/src/main/resources/springDataPersistenceConfig.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jpa="http://www.springframework.org/schema/data/jpa"
3-
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
4-
http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa.xsd"
3+
xsi:schemaLocation="
4+
http://www.springframework.org/schema/beans
5+
http://www.springframework.org/schema/beans/spring-beans.xsd
6+
http://www.springframework.org/schema/data/jpa
7+
http://www.springframework.org/schema/data/jpa/spring-jpa.xsd"
58
>
69

710
<jpa:repositories base-package="org.baeldung.persistence.dao"/>

spring-security-rest-full/src/main/resources/webSecurityConfig.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
http://www.springframework.org/schema/security
55
http://www.springframework.org/schema/security/spring-security.xsd
66
http://www.springframework.org/schema/beans
7-
http://www.springframework.org/schema/beans/spring-beans-4.2.xsd"
7+
http://www.springframework.org/schema/beans/spring-beans.xsd"
88
>
99

1010
<http pattern="/securityNone" security="none"/>

0 commit comments

Comments
 (0)