首页 \ 问答 \ Springmvc注解方式controller之间传值如何实现

Springmvc注解方式controller之间传值如何实现

求大神解决controller之间传值,不是页面传值
更新时间:2024-05-21 21:05

最新回答

404错误  是 路径错误

工程下有一个叫做WEB-INF文件夹下的web.xml打开它 

1.
如果你要该的默认访问对象再 WebRoot 下面,就

 

 
  index。jsp
  

 

2.
如果你要该的默认访问对象再 WebRoot 下面的文件夹里面,就

 

 
  文件夹名/index。jsp
  

tomcat一般的默认端口为8080,假如我们一台服务器上安装了多个web容器(如多个tomcat),一般我们会把端口修改,避免冲突,当然一定程序上便于我们访问。
举例,我们把端口改为80,则访问直接可以不用加端口号访问。
首先找到tomcat的安装目录,一般tomcat有安装版以及直接解压版,其目录下会有一个conf目录,这个目录下面存放了一些配置信息。
找到conf目录下的server.xml这个配置文件,这个文件存放着服务器的配置信息,就如端号口等等。


 

这样我们访问部署的网站即可不用添加端口号访问。

相关问答

更多
  • location / { root 你的路径 } 在根目录里面填上你的路径就行了!
  • location / { root 你的路径 } 在根目录里面填上你的路径就行了!
  • 那是你打http://localhost:8080/ssh这样他就会打开index.jsp,因为这样他会默认找WebRoot下面的index.jsp,这个是在web.xml中配置welcome-file。
  • 404错误 是 路径错误 工程下有一个叫做WEB-INF文件夹下的web.xml打开它 1. 如果你要该的默认访问对象再 WebRoot 下面,就 index。jsp 2. 如果你要该的默认访问对象再 WebRoot 下面的文件夹里面,就 文件夹名/index。jsp
  • 如果添加了项目到tomcat下那么按照下面的步骤进行配置 1、找到Server面板,右击当前的那个Tomcat,先remove掉其中所有的工程。 2、再右击那个Tomcat,选择Clean,清空一下。 3、双击那个Tomcat,会打开属性面板,找到左边第二个Server Locations。 选择第二个会在Tomcat路径下创建一个名为wtpwebapps文件夹,存放Tomcat发布的web项目; 选择第三个,可以在Server Path中输入想要的路径,保存即可。
  • 404错误 是 路径错误 工程下有一个叫做WEB-INF文件夹下的web.xml打开它 1. 如果你要该的默认访问对象再 WebRoot 下面,就 index。jsp 2. 如果你要该的默认访问对象再 WebRoot 下面的文件夹里面,就 文件夹名/index。jsp
  • 有几种可能性: ConfigOutput是一个文件夹 ConfigOutput是一个正在使用(打开)的文件 您没有以用户'Ash'登录 您通常不必以Admin身份运行以写入您自己的Documents文件夹。 There are a few possibilities: ConfigOutput is a folder ConfigOutput is a file that is in use (opened) You're not logged in as User 'Ash' You should not ...
  • 我找到了答案..这是一个安全问题。 该文件应由创建它的服务删除。 删除方法在ws1上,因此它只能删除它创建的文件。 I've found the answer .. It's a security issue. The file should be deleted by the service created it. The deletion method was on ws1, so it can delete only the files it created.
  • 解决此问题的唯一方法是不写入该文件夹。 按照惯例,您不允许写入该文件夹,不幸的是,较早版本的Windows并未支持您。 相反,您可以使用Environment.SpecialFolder来帮助您找到需要去的地方: // your application data for just that User running the app var perUserAppData = Environment.GetFolderPath( Environment.SpecialFolder.Application ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)