All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.the_qa_company.qendpoint.config.WebConfig Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
package com.the_qa_company.qendpoint.config;

import com.the_qa_company.qendpoint.controller.Sparql;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.web.server.WebServerFactoryCustomizer;
import org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory;
import org.springframework.context.annotation.Configuration;

@Configuration
public class WebConfig implements WebServerFactoryCustomizer {
	@Autowired
	Sparql sparql;

	@Override
	public void customize(ConfigurableServletWebServerFactory factory) {
		// set the port asked by the user
		factory.setPort(sparql.getPort());
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy