I'm developing a news system for a client, and I'm going through a difficulty, the moment I'm going to record the news in the bank, the following message appears:
POST: [FixedMethodStrategy: / news / {latestListlist} plus [POST]], [FixedMethodStrategy: / news / persist persist]java.lang.IllegalStateException: There are two rules that match the uri '/ news / persist' [POST]] with same priority. Consider using @Path priority attribute.
In my controller the persistence method looks like this:
NewsController.java
@Post("/noticias/persistir")
public void persistir(Noticia noticia){
[...]
}
And my form for editing or inserting news is like this:
<form action="<c:url value='/noticias/persistir'/>" method="post"
class="form-horizontal" role="form">
<input type="hidden" class="form-control" placeholder=""
name="noticia.tipo" value="Noticia"/>
//corpo do formulário tudo correto
</form>
This form if insertion and editing already worked, but began to point out that error, what can be? And how do I correct it?