Revision 42621
Added by Sandro La Bruzzo almost 8 years ago
CommonController.java | ||
---|---|---|
1 | 1 |
package eu.dnetlib.functionality.modular.ui; |
2 | 2 |
|
3 | 3 |
import java.io.StringReader; |
4 |
|
|
5 |
import javax.annotation.Resource; |
|
6 | 4 |
import javax.servlet.http.HttpServletResponse; |
7 | 5 |
|
6 |
import com.google.gson.Gson; |
|
7 |
import eu.dnetlib.enabling.locators.UniqueServiceLocator; |
|
8 |
import eu.dnetlib.rmi.enabling.ISLookUpService; |
|
9 |
import eu.dnetlib.rmi.enabling.ISRegistryService; |
|
8 | 10 |
import org.apache.commons.io.IOUtils; |
11 |
import org.springframework.beans.factory.annotation.Autowired; |
|
9 | 12 |
import org.springframework.stereotype.Controller; |
10 | 13 |
import org.springframework.web.bind.annotation.RequestMapping; |
11 | 14 |
import org.springframework.web.bind.annotation.RequestParam; |
12 | 15 |
|
13 |
import com.google.gson.Gson; |
|
14 |
|
|
15 |
import eu.dnetlib.enabling.locators.UniqueServiceLocator; |
|
16 |
import eu.dnetlib.rmi.enabling.ISLookUpService; |
|
17 |
import eu.dnetlib.rmi.enabling.ISRegistryService; |
|
18 |
|
|
19 | 16 |
@Controller |
20 | 17 |
public class CommonController { |
21 | 18 |
|
22 |
@Resource
|
|
19 |
@Autowired
|
|
23 | 20 |
private UniqueServiceLocator serviceLocator; |
24 | 21 |
|
25 | 22 |
@RequestMapping(value = "/ui/**/getProfile") |
Also available in: Unified diff
Chnaged Resource to Autowired