Null @AuthenticationPrincipal with Spring-Boot / Security
问题 I setup my Spring Security application according to the reference document and after hours of troubleshooting I continue to get a null @AuthenticationPrincipal passed into my controller. The authentication mechanism is working fine against the users in my database but still a null @AuthenticationPrincipal. I consulted several internet posts including this, and this but still I am getting null. I am using Spring-Boot 1.2.2 and Spring Security 3.2.6. Relevant POM: <parent> <groupId>org