Exception Handling With Jersey
Ref: Exception Handling With Jersey import TsMgr.response.RestErrorResponse; import jakarta.ws.rs.core.MediaType; import jakarta.ws.rs.core.Response; import jakarta.ws.rs.ext.ExceptionMapper; im...
Ref: Exception Handling With Jersey import TsMgr.response.RestErrorResponse; import jakarta.ws.rs.core.MediaType; import jakarta.ws.rs.core.Response; import jakarta.ws.rs.ext.ExceptionMapper; im...
Settings -> Editor -> File Encodings -> Default encoding for properties fiels: -> UTF-8 Check the Transparent native-to-ascii conversion;
use .entity() to inhibit default returned HTML. return Response .status(UNAUTHORIZED) .entity("Custom Message") .type(MediaType.APPLICATION_JSON) .build();
export PS1='%(?:%{%}%1{➜%} :%{%}%1{➜%} ) %{%}%~%{%} $(git_prompt_info)'
Updating a git mirror of an SVN repository Reviving a git-svn clone 1. Clone from GitHub git clone [github url] cd repo 2. Check Ref git branch -r e.g. origin/HEAD -> origin/feature-...
ChronoUnit.DAYS.between(date1, date2);
timeStamp.toLocalDateTime();
git rm --cached FILENAME
File -> New -> Module from Existing Sources…
class TestNullPointerException { @Test void testNullPointerException() { Throwable expectedException = assertThrows(NullPointerException.class, () -> { throw new Null...