This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'vaultTemplate' defined in class path resource [org/springframework/cloud/vault/config/VaultAutoConfiguration.class]: Failed to instantiate [org.springframework.vault.core.VaultTemplate]: Factory method 'vaultTemplate' threw exception with message: Error creating bean with name 'vaultSessionManager' defined in class path resource [org/springframework/cloud/vault/config/VaultAutoConfiguration.class]: Unsatisfied dependency expressed through method 'vaultSessionManager' parameter 0: Error creating bean with name 'clientAuthentication' defined in class path resource [org/springframework/cloud/vault/config/VaultAutoConfiguration.class]: Failed to instantiate [org.springframework.vault.authentication.ClientAuthentication]: Factory method 'clientAuthentication' threw exception with message: Cannot create authentication mechanism for TOKEN. This method requires either a Token (spring.cloud.vault.token) or a token file at ~/.vault- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| spring: | |
| cloud: | |
| vault: | |
| enabled: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.pepega.helloworld | |
| import org.springframework.web.bind.annotation.GetMapping | |
| import org.springframework.web.bind.annotation.RequestMapping | |
| import org.springframework.web.bind.annotation.RestController | |
| @RestController | |
| @RequestMapping(value = ["/helloWorld/v1"]) | |
| class HelloWorldController { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.pepega.common.domain | |
| import jakarta.persistence.Entity | |
| import jakarta.persistence.Table | |
| @Entity | |
| @Table(name = "user_master") | |
| class UserMaster { | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.pepega.common.domain | |
| import jakarta.persistence.Column | |
| import jakarta.persistence.Id | |
| import jakarta.persistence.MappedSuperclass | |
| import org.springframework.data.annotation.LastModifiedDate | |
| import org.springframework.data.domain.Persistable | |
| import java.time.LocalDateTime | |
| import java.util.UUID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * (non-Javadoc) | |
| * @see org.springframework.data.repository.CrudRepository#save(java.lang.Object) | |
| */ | |
| @Transactional | |
| @Override | |
| public <S extends T> S save(S entity) { | |
| Assert.notNull(entity, "Entity must not be null."); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public boolean isNew(T entity) { | |
| ID id = getId(entity); | |
| Class<ID> idType = getIdType(); | |
| if (!idType.isPrimitive()) { | |
| return id == null; | |
| } | |
| if (id instanceof Number) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.pepega.helloworld.domain | |
| import jakarta.persistence.Column | |
| import jakarta.persistence.Entity | |
| import jakarta.persistence.Id | |
| import jakarta.persistence.Table | |
| import java.util.UUID | |
| @Entity | |
| @Table(name = "Foo") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kotlin("plugin.spring") version "1.7.22" | |
| kotlin("plugin.jpa") version "1.7.22" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.pepega.helloworld.domain | |
| import jakarta.persistence.Column | |
| import jakarta.persistence.Entity | |
| import jakarta.persistence.Id | |
| import java.util.UUID | |
| @Entity | |
| class HelloWorld( | |
| message: String |
OlderNewer