I am using Grails spring plugin for security kernel version 3.0.3.
Debug statements when setting the spring security kernel structure are printed twice, and the filter chain is also initialized twice
WARN grails.plugin.springsecurity.SpringSecurityCoreGrailsPlugin - Configuring Spring Security Core ... Configuring Spring Security Core ... WARN grails.plugin.springsecurity.SpringSecurityCoreGrailsPlugin - ... finished configuring Spring Security Core ... finished configuring Spring Security Core
Build a gradle file
buildscript { ext { grailsVersion = project.grailsVersion } repositories { mavenLocal() maven { url "https://repo.grails.org/grails/core" } } dependencies { classpath "org.grails:grails-gradle-plugin:$grailsVersion" classpath "org.grails.plugins:hibernate:4.3.10.5" } } plugins { id "io.spring.dependency-management" version "0.5.2.RELEASE" } version "0.1" group "restservicesapp" apply plugin: "spring-boot" apply plugin: "war" apply plugin: 'eclipse' apply plugin: 'idea' apply plugin: "org.grails.grails-web" ext { grailsVersion = project.grailsVersion gradleWrapperVersion = project.gradleWrapperVersion } repositories { mavenLocal() maven { url "https://repo.grails.org/grails/core" } } dependencyManagement { imports { mavenBom "org.grails:grails-bom:$grailsVersion" } applyMavenExclusions false } dependencies { compile "org.springframework.boot:spring-boot-starter-logging" compile "org.springframework.boot:spring-boot-starter-actuator" compile "org.springframework.boot:spring-boot-autoconfigure" provided "org.springframework.boot:spring-boot-starter-tomcat" compile "org.grails.plugins:hibernate" compile "org.grails.plugins:cache" compile "org.hibernate:hibernate-ehcache" runtime "mysql:mysql-connector-java:5.1.38" compile 'org.grails.plugins:spring-security-core:3.0.3' compile ('org.grails.plugins:spring-security-rest-gorm:2.0.0.M2') { exclude group: 'org.grails.plugins', module: 'spring-security-core' } testCompile "org.grails:grails-plugin-testing" testCompile "org.grails.plugins:geb" //console "org.grails:grails-console" } task wrapper(type: Wrapper) { gradleVersion = gradleWrapperVersion }
spring-security grails grails-plugin
Alice
source share