I'm trying to create a simple web app using Java Spring and deploy it to Google App Engine, but I can't find a clear guide for setting up the project. I'm using Eclipse with the Goole plugin ("New web application project..."). I created all the controllers and I have a configuration file like this:
我正在尝试使用Java Spring创建一个简单的Web应用程序并将其部署到Google App Engine,但我找不到设置项目的明确指南。我正在使用Eclipse和Goole插件(“新的Web应用程序项目......”)。我创建了所有控制器,我有一个像这样的配置文件:
@Configuration
@EnableWebMvc
@ComponentScan
@EnableAutoConfiguration
public class Application {
public static void main(String[] args){
SpringApplication.run(Application.class, args);
}
}
I don't want a web.xml file. How can I create the project?
我不想要一个web.xml文件。我该如何创建项目?
1 个解决方案
#1
You can look into the "Google App Engine For Java - Spring Basic set up" on how to create your Java Spring project and how to properly set up the Spring configurations.
您可以查看“Google App Engine For Java - Spring Basic设置”,了解如何创建Java Spring项目以及如何正确设置Spring配置。
#1
You can look into the "Google App Engine For Java - Spring Basic set up" on how to create your Java Spring project and how to properly set up the Spring configurations.
您可以查看“Google App Engine For Java - Spring Basic设置”,了解如何创建Java Spring项目以及如何正确设置Spring配置。