빨간줄에 마우스대보니까 이런게 뜨네요
Multiple annotations found at this line: - Invalid element name: - url-pattern One of the following is expected: - servlet-name Error indicated by: {http://xmlns.jcp.org/xml/ns/javaee} with code: - cvc-complex-type.2.4.a: Invalid content was found starting with element 'url-pattern'. One of '{"http://xmlns.jcp.org/xml/ns/javaee":servlet-name}' is expected.
@WebServlet() 이건 없었구요
<servlet-name>HelloServlet</servlet-name> 이 코드를 입력하니까 빨간줄이사라지긴했어요