Clean up SpEL examples
This commit is contained in:
parent
97e28426ac
commit
f2dd909cec
|
@ -1,6 +1,6 @@
|
|||
package com.baeldung.spring.spel;
|
||||
|
||||
import com.baeldung.spring.spel.examples.*;
|
||||
import com.baeldung.spring.spel.examples.SpelConditional;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||
|
||||
|
|
|
@ -2,16 +2,11 @@ package com.baeldung.spring.spel.examples;
|
|||
|
||||
import com.baeldung.spring.spel.entity.Car;
|
||||
import com.baeldung.spring.spel.entity.CarPark;
|
||||
import org.springframework.expression.EvaluationContext;
|
||||
import org.springframework.expression.Expression;
|
||||
import org.springframework.expression.ExpressionParser;
|
||||
import org.springframework.expression.spel.SpelParserConfiguration;
|
||||
import org.springframework.expression.spel.standard.SpelExpressionParser;
|
||||
import org.springframework.expression.spel.support.StandardEvaluationContext;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class SpelParser {
|
||||
public static void main(String[] args) {
|
||||
Car car = new Car();
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
xmlns:context="http://www.springframework.org/schema/context"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
|
||||
|
||||
<context:component-scan base-package="com.baeldung.spring.spel" />
|
||||
<context:component-scan base-package="com.baeldung.spring.spel"/>
|
||||
|
||||
</beans>
|
|
@ -3,6 +3,6 @@
|
|||
xmlns:context="http://www.springframework.org/schema/context"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
|
||||
|
||||
<context:component-scan base-package="com.baeldung.spring.spel" />
|
||||
<context:component-scan base-package="com.baeldung.spring.spel"/>
|
||||
|
||||
</beans>
|
Loading…
Reference in New Issue