Java

multiple classes in a single file : modifier private not allowed here

≯℡__Kan透↙ 提交于 2020-07-06 06:23:35
问题 I am not able to understand why this code doesn't compile: class A { public static void main(String[] args) { System.out.println("hi"); } } private class B { int a; } I am saving the contents in a file named A.java - and I get an error: modifier private not allowed here // where I have defined

multiple classes in a single file : modifier private not allowed here

╄→尐↘猪︶ㄣ 提交于 2020-07-06 06:22:10
问题 I am not able to understand why this code doesn't compile: class A { public static void main(String[] args) { System.out.println("hi"); } } private class B { int a; } I am saving the contents in a file named A.java - and I get an error: modifier private not allowed here // where I have defined

Unable to start ReactiveWebApplicationContext due to missing ReactiveWebServerFactory bean

一个人想着一个人 提交于 2020-07-06 06:11:32
问题 I have a new springboot application I am attempting to get started. The error I receive is org.springframework.context.ApplicationContextException: Unable to start reactive web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start