做毕设(八)——阿里云

来源:互联网 发布:郭斯特 知乎 编辑:程序博客网 时间:2024/04/30 02:49

接下来做新闻的爬取和推荐,还需要学习一个,就先把进度缓一缓。
就想把项目部署到公网上去,便买了一个阿里云学生服务器
39.108.50.202:8080<–网址
昨天下午折腾到今天中午,总算成功了。
今天又查了下我的选题,原来是要做娱乐新闻网站……到时候在改吧……
先放上去,不更新,等做完


pom.xml

<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId><exclusions>    <exclusion>        <groupId>org.springframework.boot</groupId>        <artifactId>spring-boot-starter-tomcat</artifactId>    </exclusion></exclusions></dependency><dependency><groupId>org.apache.tomcat</groupId><artifactId>tomcat-servlet-api</artifactId><version>8.0.36</version><scope>provided</scope></dependency>

MwApplication.java

@SpringBootApplicationpublic class MwApplication extends SpringBootServletInitializer {    @Override    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {        return application.sources(MwApplication.class);    }    public static void main(String[] args) throws Exception {        SpringApplication.run(MwApplication.class, args);    }}
原创粉丝点击