Clean up SpEL examples

This commit is contained in:
David Morley 2016-04-12 06:01:29 -05:00
parent 97e28426ac
commit f2dd909cec
4 changed files with 3 additions and 8 deletions

View File

@ -1,6 +1,6 @@
package com.baeldung.spring.spel; 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.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext;

View File

@ -2,16 +2,11 @@ package com.baeldung.spring.spel.examples;
import com.baeldung.spring.spel.entity.Car; import com.baeldung.spring.spel.entity.Car;
import com.baeldung.spring.spel.entity.CarPark; 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.ExpressionParser;
import org.springframework.expression.spel.SpelParserConfiguration; import org.springframework.expression.spel.SpelParserConfiguration;
import org.springframework.expression.spel.standard.SpelExpressionParser; import org.springframework.expression.spel.standard.SpelExpressionParser;
import org.springframework.expression.spel.support.StandardEvaluationContext; import org.springframework.expression.spel.support.StandardEvaluationContext;
import java.util.ArrayList;
import java.util.List;
public class SpelParser { public class SpelParser {
public static void main(String[] args) { public static void main(String[] args) {
Car car = new Car(); Car car = new Car();

View File

@ -3,6 +3,6 @@
xmlns:context="http://www.springframework.org/schema/context" 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"> 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> </beans>

View File

@ -3,6 +3,6 @@
xmlns:context="http://www.springframework.org/schema/context" 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"> 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> </beans>