You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.1 KiB
31 lines
1.1 KiB
package com.fr.plugin.demo.web.request.controller; |
|
|
|
import com.fr.decision.webservice.annotation.LoginStatusChecker; |
|
import com.fr.decision.webservice.annotation.TemplateAuth; |
|
import com.fr.decision.webservice.bean.template.TemplateProductType; |
|
import com.fr.decision.webservice.v10.login.TokenResource; |
|
import com.fr.third.springframework.stereotype.Controller; |
|
import com.fr.third.springframework.web.bind.annotation.RequestMapping; |
|
import com.fr.third.springframework.web.bind.annotation.ResponseBody; |
|
|
|
@Controller |
|
@RequestMapping("dynamic") |
|
public class DynamicController2 { |
|
|
|
@RequestMapping("mapping21") |
|
@ResponseBody |
|
@TemplateAuth(product = TemplateProductType.FINE_REPORT) |
|
@LoginStatusChecker(tokenResource = TokenResource.COOKIE) |
|
public String dynamicMapping1(){ |
|
return "This is dynamicMapping21"; |
|
} |
|
|
|
@RequestMapping("mapping22") |
|
@ResponseBody |
|
@TemplateAuth(product = TemplateProductType.FINE_REPORT) |
|
@LoginStatusChecker(tokenResource = TokenResource.COOKIE) |
|
public String dynamicMapping2(){ |
|
return "This is dynamicMapping22"; |
|
} |
|
|
|
}
|
|
|