org.springframework.boot.context.properties.ConfigurationProperties

IgnoreUrlsConfig.java

package zwf;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.ArrayList;
import java.util.List;

@ConfigurationProperties(prefix = "secure.ignored")
public class IgnoreUrlsConfig
{

	private List urls = new ArrayList();

	public List getUrls()
	{
		return urls;
	}

	public void setUrls(List urls)
	{
		this.urls = urls;
	}
}

org.springframework.boot.context.properties.ConfigurationProperties_第1张图片

application.properties

server.port=8801
spring.application.name=z01-service-nacos

spring.cloud.nacos.discovery.server-addr=127.0.0.1:8848
spring.cloud.nacos.discovery.namespace=zwf

#spring.cloud.nacos.config.enabled=true
#spring.cloud.nacos.config.server-addr=127.0.0.1:8848
#spring.cloud.nacos.config.namespace=zwf
#spring.cloud.nacos.config.prefix=${spring.application.name}
#spring.cloud.nacos.config.file-extension=properties
#spring.cloud.nacos.config.group=DEFAULT_GROUP
#spring.cloud.nacos.config.shared-configs[0].data-id=dev
#spring.cloud.nacos.config.shared-configs[0].group=DEFAULT_GROUP
#spring.cloud.nacos.config.shared-configs[0].refresh=true
#spring.cloud.nacos.config.username=nacos
#spring.cloud.nacos.config.password=nacos
#spring.cloud.nacos.config.enable-remote-sync-config=true
#spring.cloud.nacos.config.refresh-enabled=true

secure.ignored.urls=/swagger-ui/,/swagger-resources/**,/**/v2/api-docs,/**/*.html

org.springframework.boot.context.properties.ConfigurationProperties_第2张图片

你可能感兴趣的:(springboot,java,springboot)