File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
spring-security-rest-full/src/main
java/org/baeldung/web/metric Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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" />
Original file line number Diff line number Diff line change 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" />
You can’t perform that action at this time.
0 commit comments