第一次在STS新建一一个spring MVC 项目 运行出现cannot star Application

我跟我同学一起装这个STS,他的机子运行没事,我的就出现这个。
PLATFORM VERSION INFO
Windows : 6.1.7601.65536 (Win32NT)
Common Language Runtime : 4.0.30319.34209
System.Deployment.dll : 4.0.30319.34244 built by: FX452RTMGDR
clr.dll : 4.0.30319.34209 built by: FX452RTMGDR
dfdll.dll : 4.0.30319.34244 built by: FX452RTMGDR
dfshim.dll : 4.0.41209.0 (Main.041209-0000)
SOURCES
Deployment url : http://localhost:8080/ttt/pang
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of http://localhost:8080/ttt/pang resulted in exception. Following failure messages were detected:
+ Exception reading manifest from http://localhost:8080/ttt/pang: the manifest may not be valid or the file could not be opened.
+ Data at the root level is invalid. Line 1, position 1.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [2015/8/21 23:07:40] : Activation of http://localhost:8080/ttt/pang has started.
ERROR DETAILS
Following errors were detected during this operation.
* [2015/8/21 23:07:41] System.Deployment.Application.InvalidDeploymentException (ManifestParse)
- Exception reading manifest from http://localhost:8080/ttt/pang: the manifest may not be valid or the file could not be opened.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirectBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.Xml.XmlException
- Data at the root level is invalid. Line 1, position 1.
- Source: System.Xml
- Stack trace:
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Deployment.Application.ManifestValidatingReader.XmlFilteredReader.Read()
at System.Xml.XmlCharCheckingReader.Read()
at System.Xml.XsdValidatingReader.Read()
at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
下面是简单的加个方法
package com.ww.ttt;
import java.text.DateFormat;
import java.util.Date;
import java.util.Locale;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
/**
* Handles requests for the application home page.
*/
@Controller
public class HomeController {
private static final Logger logger = LoggerFactory.getLogger(HomeController.class);
/**
* Simply selects the home view to render by returning its name.
*/
@RequestMapping(value = "/", method = RequestMethod.GET)
public String home(Locale locale, Model model) {
logger.info("Welcome home! The client locale is {}.", locale);
Date date = new Date();
DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG, locale);
String formattedDate = dateFormat.format(date);
model.addAttribute("serverTime", formattedDate );
return "home";
}
@RequestMapping(value="pang")
@ResponseBody
public String pang(){
return "pang";
}
}
我对新建项目已经点击update project过了,运行还是不行
求大神帮帮解决
...全文
相关推荐
**Spring Tools 4**(简称 **STS 4**)是专为 Spring 和 Spring Boot 应用程序开发设计的集成开发环境工具集
**Spring Tools 4**(简称 **STS 4**)是专为 Spring 和 Spring Boot 应用程序开发设计的集成开发环境工具集,由 Pivotal(现 VMware)团队开发并维护。它是基于 Eclipse 平台构建的免费开源插件套件,也可作为独立 IDE 发行,提供强大的代码补全、调试、配置支持和可视化功能,极大提升 Spring 开发效率。
Eclipse配置Spring开发环境全指南
Spring框架作为Java生态中最流行的企业级开发框架,其核心原理基于控制反转(IoC)和面向切面编程(AOP)两大设计模式。通过依赖注入实现组件解耦,配合AOP实现横切关注点分离,显著提升代码复用性和可维护性。在开发工具层面,Eclipse凭借其强大的插件体系成为Spring开发的理想选择,特别是通过Spring Tools 4插件可实现智能代码提示、实时配置验证等高级功能。实际开发中需重点注意JDK版本匹配、Maven依赖管理和热部署配置等工程实践要点,这些配置直接影响着开发效率和项目稳定性。本文以E
chrome-headless-shell-win64-156.0.8078.80(Stable).zip
chrome-headless-shell-win64-156.0.8078.80(Stable).zip
FTP多连接自动上传工具
FTP多连接自动上传工具
P1851 好朋友.mp4
P1851 好朋友.mp4


Web 开发
