Skip to content

Instantly share code, notes, and snippets.

View kjunichi's full-sized avatar

Junichi Kajiwara kjunichi

View GitHub Profile
AADSTS700016: Application with identifier 'http://localhost:8080/saml2/service-provider-metadata/one' was not found in the directory '既定のディレクトリ'. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant.
>gradlew :servlet:spring-boot:java:saml2:login:bootRun
Downloading https://services.gradle.org/distributions/gradle-7.5.1-bin.zip
...........10%............20%...........30%............40%...........50%............60%...........70%............80%...........90%............100%
Welcome to Gradle 7.5.1!
Here are the highlights of this release:
- Support for Java 18
- Support for building with Groovy 4
- Much more responsive continuous builds

JSONベースでの認証APIを作成

以下のクラスを継承した

  • UsernamePasswordAuthenticationFilter
  • AuthenticationProvider
  • UserDetails 要らないかも

curlコマンドの操作

CityGML

PLATEAU

Spring Initializr

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x0]

runtime stack:
runtime.throw({0x69ae0d?, 0x70c36a?})
	/usr/local/go/src/runtime/panic.go:1047 +0x5d fp=0x146fcbdfddc0 sp=0x146fcbdfdd90 pc=0x4373fd
runtime.sigpanic()
	/usr/local/go/src/runtime/signal_unix.go:819 +0x369 fp=0x146fcbdfde10 sp=0x146fcbdfddc0 pc=0x44ce89

IntelliJ IDEA では、プロジェクト出力のレイアウトはアーティファクトを介して定義

java.lang.RuntimeException: com.intellij.execution.ExecutionException: The Module Root specified is not a module according to Intellij at com.poratu.idea.plugins.tomcat.conf.TomcatCommandLineState.createJavaParameters(TomcatCommandLineState.java:153) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:865) at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:61) at com.intellij.execution.configurations.JavaCommandLineState.getJavaParameters(JavaCommandLineState.java:44) at com.intellij.execution.impl.DefaultJavaProgramRunner.patchJavaCommandLineParams(DefaultJavaProgramRunner.java:137) at com.intellij.execution.impl.DefaultJavaProgramRunner.lambda$doExecute$3(DefaultJavaProgramRunner.java:127) at com.intellij.execution.runners.JavaProgramPatcher.lambda$patchJavaCommandLineParamsUnderProgress$2(JavaProgramPatcher.java:43) at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:298) at com.intellij.openapi.progre

JUnit

ImmutableMapを比較

Assersions.assertEqualsでいけそう

@Testと@ParameterizedTestは一緒に書いてはダメ

怒られた。

dpkg: error processing archive /var/cache/apt/archives/opam_2.1.0~rc2-0ppa1~focal_amd64.deb (--unpack):
trying to overwrite '/usr/bin/opam-installer', which is also in package opam-installer 2.0.5-1ubuntu1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/opam_2.1.0~rc2-0ppa1~focal_amd64.deb