21 lines
586 B
Java
21 lines
586 B
Java
/*
|
|
* Copyright 2025 Google. This software is provided as-is, without warranty or representation for any use or purpose.
|
|
* Your use of it is subject to your agreement with Google.
|
|
*/
|
|
|
|
package com.example.config;
|
|
|
|
import com.google.cloud.dlp.v2.DlpServiceClient;
|
|
import java.io.IOException;
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
@Configuration
|
|
public class DlpConfig {
|
|
|
|
@Bean(destroyMethod = "close")
|
|
public DlpServiceClient dlpServiceClient() throws IOException {
|
|
return DlpServiceClient.create();
|
|
}
|
|
}
|