package com.chengjf.sparkdemo.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Controller注解
 * 
 * @author CHENGJIANFENG100
 * @date 2015-09-10
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Controller {

	public String url();

	public String template() default "";
}

package com.chengjf.sparkdemo.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Controller注解
 * 
 * @author CHENGJIANFENG100
 * @date 2015-09-10
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Controller {

	public String url();

}

删除Controller注解中的template属性，因为每个Controller可能需要多个template。