Compare commits

..

3 Commits

Author SHA1 Message Date
f3888cee71
Merge pull request #241 from Sebclem/renovate/openjdk-21.x
⬆️ Update openjdk Docker tag to v21
2023-12-15 23:09:07 +01:00
sclement
62fa81c7c6 Fix compilation error 2023-12-15 23:07:05 +01:00
renovate[bot]
157c512c0c
⬆️ Update openjdk Docker tag to v21 2023-12-14 14:14:38 +00:00
4 changed files with 5 additions and 21 deletions

View File

@ -2,6 +2,6 @@
"java.configuration.updateBuildConfiguration": "automatic",
"java.compile.nullAnalysis.mode": "disabled",
"editor.codeActionsOnSave": {
"source.organizeImports": true
"source.organizeImports": "explicit"
}
}

View File

@ -1,4 +1,4 @@
FROM openjdk:18.0.1
FROM openjdk:21
WORKDIR /bot_src
ARG BUILD_NBR
ARG BRANCH_NAME

View File

@ -1,16 +0,0 @@
package net.Broken.Api.Security;
import net.Broken.Api.Security.Expression.CustomMethodSecurityExpressionHandler;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.access.expression.method.MethodSecurityExpressionHandler;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration;
@Configuration
@EnableGlobalMethodSecurity(prePostEnabled = true)
public class MethodSecurityConfig extends GlobalMethodSecurityConfiguration {
@Override
protected MethodSecurityExpressionHandler createExpressionHandler() {
return new CustomMethodSecurityExpressionHandler();
}
}

View File

@ -1,6 +1,7 @@
package net.Broken;
import net.dv8tion.jda.api.JDA;
import java.util.HashMap;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.boot.SpringApplication;
@ -10,9 +11,8 @@ import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
import org.springframework.core.io.ClassPathResource;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import java.util.HashMap;
import net.dv8tion.jda.api.JDA;
/**
* Main Class