简体   繁体   English

Java Spring和Google App Engine

[英]Java Spring and Google App Engine

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. 我正在尝试使用Java Spring创建一个简单的Web应用并将其部署到Google App Engine,但是找不到用于设置该项目的明确指南。 I'm using Eclipse with the Goole plugin ("New web application project..."). 我正在使用带有Goole插件的Eclipse(“新的Web应用程序项目...”)。 I created all the controllers and I have a configuration file like this: 我创建了所有控制器,并且具有如下配置文件:

@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. 我不需要web.xml文件。 How can I create the project? 如何创建项目?

您可以查看“ Google App Engine for Java-Spring Basic设置 ”,了解如何创建Java Spring项目以及如何正确设置Spring配置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM