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.
35 lines
1.3 KiB
35 lines
1.3 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.intelli.record.Focus; |
|
import com.fr.intelli.record.Original; |
|
import com.fr.record.analyzer.EnableMetrics; |
|
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; |
|
|
|
@EnableMetrics |
|
@Controller |
|
@RequestMapping("dynamic") |
|
public class DynamicController1 { |
|
@Focus(id = "com.fr.plugin.demo.web.controller", text = "", source = Original.PLUGIN) |
|
@RequestMapping("mapping11") |
|
@ResponseBody |
|
@TemplateAuth(product = TemplateProductType.FINE_REPORT) |
|
@LoginStatusChecker(tokenResource = TokenResource.COOKIE) |
|
public String dynamicMapping1(){ |
|
return "This is dynamicMapping11"; |
|
} |
|
|
|
@RequestMapping("mapping12") |
|
@ResponseBody |
|
@TemplateAuth(product = TemplateProductType.FINE_REPORT) |
|
@LoginStatusChecker(tokenResource = TokenResource.COOKIE) |
|
public String dynamicMapping2(){ |
|
return "This is dynamicMapping12"; |
|
} |
|
|
|
}
|
|
|