Skip to content

Commit 1d09a2e

Browse files
Added missing @Configuration annotation
1 parent 8593eb0 commit 1d09a2e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/net/javadiscord/javabot/api/TomcatConfig.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,20 @@
66
import org.springframework.beans.factory.annotation.Value;
77
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
88
import org.springframework.context.annotation.Bean;
9+
import org.springframework.context.annotation.Configuration;
910

1011
/**
1112
* Holds all configuration for the {@link org.springframework.boot.autoconfigure.web.ServerProperties.Tomcat}
1213
* web service.
1314
*/
15+
@Configuration
1416
public class TomcatConfig {
1517

1618
@Value("${tomcat.ajp.port}")
17-
int ajpPort;
19+
private int ajpPort;
1820

1921
@Value("${tomcat.ajp.enabled}")
20-
boolean tomcatAjpEnabled;
22+
private boolean tomcatAjpEnabled;
2123

2224
/**
2325
* Sets up the {@link TomcatServletWebServerFactory} using the {@link Value}s defined in the

0 commit comments

Comments
 (0)