Liferay 7.2 portal with spring-core issueLiferay 7.2 portal with spring-core issuehttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1142494952024-03-29T13:01:53Z2024-03-29T13:01:53ZRE: Liferay 7.2 portal with spring-core issueматвей чебукинhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1142567552019-07-11T16:04:17Z2019-07-11T16:04:17ZThanks for your replyматвей чебукин2019-07-11T16:04:17ZRE: Liferay 7.2 portal with spring-core issueDavid H Nebingerhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1142512152019-07-11T14:20:58Z2019-07-11T14:20:58ZFor spring mvc use, you have to stick with the legacy war format. Since you have a legacy war, you will also be able to add your context listener.David H Nebinger2019-07-11T14:20:58ZLiferay 7.2 portal with spring-core issueматвей чебукинhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1142494942019-07-11T13:07:59Z2019-07-11T13:07:59Z<html><head></head><body><strong>Hi everyone</strong><br>I want to use spring-core in liferay 7.2 with @Autowired annotation. So, i have following portlet<br><br><br><pre><code>public class SamplePortlet extends GenericPortlet { </code></pre><pre><code>&nbsp; &nbsp; &nbsp; &nbsp;@Autowired
&nbsp; private EmployeeService employeeService;
&nbsp; &nbsp; &nbsp; &nbsp;@Override
&nbsp; protected void doView(RenderRequest request, RenderResponse response){
&nbsp; response.getWriter().println(employeeService.toString());
&nbsp; &nbsp; &nbsp; &nbsp;}
}</code></pre>So, what i must to do in web.xml or in portlet.xml to set context listener of spring-core ? For example in web-servlet application i must to add<br><pre><code><listener>
<listener-class> org.springframework.web.context.Cont