Main.java:14: error: class WebConfig is public, should be declared in a file named WebConfig.java
public class WebConfig extends WebMvcConfigurerAdapter {
^
Main.java:2: error: package org.springframework.context.annotation does not exist
import org.springframework.context.annotation.ComponentScan;
^
Main.java:3: error: package org.springframework.context.annotation does not exist
import org.springframework.context.annotation.Configuration;
^
Main.java:4: error: package org.springframework.scheduling.annotation does not exist
import org.springframework.scheduling.annotation.EnableScheduling;
^
Main.java:5: error: package org.springframework.scheduling.annotation does not exist
import org.springframework.scheduling.annotation.Scheduled;
^
Main.java:6: error: package org.springframework.web.servlet.config.annotation does not exist
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
^
Main.java:7: error: package org.springframework.web.servlet.config.annotation does not exist
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
^
Main.java:8: error: package org.springframework.web.servlet.support does not exist
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
^
Main.java:14: error: cannot find symbol
public class WebConfig extends WebMvcConfigurerAdapter {
^
symbol: class WebMvcConfigurerAdapter
Main.java:10: error: cannot find symbol
@Configuration
^
symbol: class Configuration
Main.java:11: error: cannot find symbol
@EnableWebMvc
^
symbol: class EnableWebMvc
Main.java:12: error: cannot find symbol
@EnableScheduling
^
symbol: class EnableScheduling
Main.java:13: error: cannot find symbol
@ComponentScan({"ru.web.portal.onlinescheduling"})
^
symbol: class ComponentScan
Main.java:21: error: cannot find symbol
public static class MvcWebApplicationInitializer extends AbstractAnnotationConfigDispatcherServletInitializer {
^
symbol: class AbstractAnnotationConfigDispatcherServletInitializer
location: class WebConfig
Main.java:16: error: cannot find symbol
@Scheduled(fixedDelay = 3000)
^
symbol: class Scheduled
location: class WebConfig
Main.java:24: error: method does not override or implement a method from a supertype
@Override
^
Main.java:29: error: method does not override or implement a method from a supertype
@Override
^
Main.java:35: error: method does not override or implement a method from a supertype
@Override
^
18 errors