We will create a sample application for JWT + Stateless Token + Spring Security + REST(JSON) API
- Create a Spring Boot Project with following dependencies:
- Spring Web
- Spring Security
- Spring Boot DevTools and Other dependencies
The architectural design pattern of django is MVT (Model-View-Template)
Django Project: It is a collection of applications and configurations that when combined together will make up the full web application.
Django Application: It is created to perform a particular functionality for the entire web application. It can work individually and can be plugged into a project due to its modularity. e.g. registration app, comments app, etc. These Django Apps can then be plugged into other Django Projects, so you can reuse them.
/** | |
* Create a Symfony response for the given exception. | |
* | |
* @param \Exception $e | |
* @return mixed | |
*/ | |
protected function convertExceptionToResponse(Exception $e) | |
{ | |
if (config('app.debug')) { | |
$whoops = new \Whoops\Run; |
This is due to mismatching profiles in grails (web,web-plugin etc.). By default, it is specified in application.yml
when we create grails 3 application. However, when we change from application.yml
file to application.groovy
, it would have been missed.
Just add this to application.groovy
,
grails{
profile = 'web-plugin'
codegen{