if (c.getQuery().contains("update") || c.getQuery().contains("delete") || c.getQuery().contains("truncate")
|| c.getQuery().contains("drop")) {
throw new MensagemException(Mensagens.getMensagem("Only select is allowed"));
I have this simple code, that checks the string query. But it only checks lower case, what can I do to make it also verify any upper case without writing this over and over?
No comments:
Post a Comment