首页 \ 问答 \ Spring Boot进阶1 - 整合Swagger2自动生成RESTful API文档

Spring Boot进阶1 - 整合Swagger2自动生成RESTful API文档

更新时间:2022-03-02 14:03

最满意答案

看下你的struts.xml 里面配置的
     

这种类型的句子 看看class有没有配置错路径,或者看看你的action文件名字是不是BlogUsers

还有种可能看看struts.xml 里面的namespace有没有弄错,要在jsp页面里面调用action的时候加上namespace的,如namespace=“test/” 你在表单跳转中action="test/....."要写成这样

其他回答

是不是配置文件没写对?这个错误很常见的,用url重写了么?如果有看看url重写的配置文件,看看struts配置文件,再看看要定位的是execute方法还是自己定义的方法,还有在web.xml中配置的struts的后缀,是不是吧*.action改成别的了?等等。这个错误应该跟代码无关,配置或者访问路径问题。
BlogUsers在struts.xml中action配置有问题
你非得用msg.hello这个属性么? 你的action中有一个string类型的msg属性,你想想看你这样会输出什么?
换个名字试试看  
还有你需要引入这个文件么,你不是已经继承了struts-default.xml

相关问答

更多
  • 看下你的struts.xml 里面配置的 这种类型的句子 看看class有没有配置错路径,或者看看你的action文件名字是不是BlogUsers 还有种可能看看struts.xml 里面的namespace有没有弄错,要在jsp页面里面调用action的时候加上namespace的,如namespace=“test/” 你在表单跳转中action="test/....."要写成这样
  • 在web.xml中这样设置 struts org.apache. struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter config struts-default.xml,struts-plugin.xml,config/struts.xml struts /* 必须把struts-default.xml,struts-plugin.xml一起添加。必须:按顺序添加
  • 放到SRC下。如果struts.xml里带有INCLUDE标签 则放到对应的包下面。
  • 我不知道ASP.NET和Masterpages,但你可能想看看Tiles插件 。 编辑:看看Masterpages文档,看起来像Tiles真的是你想要的。 I don't know ASP.NET and Masterpages but you might want to look into the Tiles plugin. Edit: looking at the Masterpages documentation it seems like Tiles really is the equivalent ...
  • struts2-convention-plugin不会取代XWork及其基于xml的配置。 因此,如果您使用自定义拦截器,则无法消除对struts.xml的需求。 有关约定插件用法的参考和说明,请参阅docs 。 The struts2-convention-plugin doesn't replace XWork and its configuration which is xml based. So you cannot eliminate a need of struts.xml if you are ...
  • 你的假设是正确的,当添加一个字段错误时,它会默认返回“INPUT”结果,导致输入结果被渲染。 我会建议寻找实施可预备的,这将允许您始终在页面呈现之前填充组合框。 Your assumption is correct, when a field error is added, it will by default return the "INPUT" result, causing the input result to be rendered. I would suggest looking into im ...
  • 这是不可能的全天搜索谷歌,并没有找到一个解决方案。 你错过了一堂课。 你需要一个org.apache.tiles.web.startup.TilesListener类,但是这个文件可以在tiles-core-2.0.6.jar中找到 。 你缺少这个文件。 如果您不想从Web下载每个文件,请使用pom.xml Maven配置,如下面的链接。 当您使用mvn package构建项目时,Maven将下载所有必需的依赖项 除此之外,项目文件中的很多错误都是一个配置: 搞糟不同版本的瓷砖 使用错误和冗余的上下文参数 ...
  • 你可以用config-browser插件做到这一点。 检查参考文档。 该插件的一个功能是 显示所有可访问的操作URL You could do it with the config-browser plugin. Check the reference docs. One of the features of that plugin is Shows all accessible action URLs
  • 请尝试包括tiles-srvlet jar。 根据tile 2.2,TilesListener类存在于该jar上。 Please try to include the tiles-srvlet jar. The TilesListener class is present on that jar as per tiles 2.2.
  • 根据Struts文档,您可以使用freemarker.properties文件指定FreeMarker配置设置,该文件应该是“在类路径中”。 (可以在Configuration.setSetting的FreeMarker API文档中找到设置列表) 顺便说一句,不要使用2.3.21; 这是一个非常古老的版本。 (我不是指incompatibleImprovements ,而是版本的jar。) According to the Struts documentation, you can specify the ...

相关文章

更多

最新问答

更多
  • 如何在Laravel 5.2中使用paginate与关系?(How to use paginate with relationships in Laravel 5.2?)
  • linux的常用命令干什么用的
  • 由于有四个新控制器,Auth刀片是否有任何变化?(Are there any changes in Auth blades due to four new controllers?)
  • 如何交换返回集中的行?(How to swap rows in a return set?)
  • 在ios 7中的UITableView部分周围绘制边界线(draw borderline around UITableView section in ios 7)
  • 使用Boost.Spirit Qi和Lex时的空白队长(Whitespace skipper when using Boost.Spirit Qi and Lex)
  • Java中的不可变类(Immutable class in Java)
  • WordPress发布查询(WordPress post query)
  • 如何在关系数据库中存储与IPv6兼容的地址(How to store IPv6-compatible address in a relational database)
  • 是否可以检查对象值的条件并返回密钥?(Is it possible to check the condition of a value of an object and JUST return the key?)
  • GEP分段错误LLVM C ++ API(GEP segmentation fault LLVM C++ API)
  • 绑定属性设置器未被调用(Bound Property Setter not getting Called)
  • linux ubuntu14.04版没有那个文件或目录
  • 如何使用JSF EL表达式在param中迭代变量(How to iterate over variable in param using JSF EL expression)
  • 是否有可能在WPF中的一个单独的进程中隔离一些控件?(Is it possible to isolate some controls in a separate process in WPF?)
  • 使用Python 2.7的MSI安装的默认安装目录是什么?(What is the default installation directory with an MSI install of Python 2.7?)
  • 寻求多次出现的表达式(Seeking for more than one occurrence of an expression)
  • ckeditor config.protectedSource不适用于editor.insertHtml上的html元素属性(ckeditor config.protectedSource dont work for html element attributes on editor.insertHtml)
  • linux只知道文件名,不知道在哪个目录,怎么找到文件所在目录
  • Actionscript:检查字符串是否包含域或子域(Actionscript: check if string contains domain or subdomain)
  • 将CouchDB与AJAX一起使用是否安全?(Is it safe to use CouchDB with AJAX?)
  • 懒惰地初始化AutoMapper(Lazily initializing AutoMapper)
  • 使用hasclass为多个div与一个按钮问题(using hasclass for multiple divs with one button Problems)
  • Windows Phone 7:检查资源是否存在(Windows Phone 7: Check If Resource Exists)
  • 无法在新线程中从FREContext调用getActivity()?(Can't call getActivity() from FREContext in a new thread?)
  • 在Alpine上升级到postgres96(/ usr / bin / pg_dump:没有这样的文件或目录)(Upgrade to postgres96 on Alpine (/usr/bin/pg_dump: No such file or directory))
  • 如何按部门显示报告(How to display a report by Department wise)
  • Facebook墙贴在需要访问令牌密钥后无法正常工作(Facebook wall post not working after access token key required)
  • Javascript - 如何在不擦除输入的情况下更改标签的innerText(Javascript - how to change innerText of label while not wiping out the input)
  • WooCommerce / WordPress - 不显示具有特定标题的产品(WooCommerce/WordPress - Products with specific titles are not displayed)