<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Springfox on 魔都水滴</title>
    <link>https://blog.margrop.net/tag/springfox/</link>
    <description>Recent content in Springfox on 魔都水滴</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-CN</language>
    <lastBuildDate>Sun, 12 Mar 2023 20:20:01 +0800</lastBuildDate>
    <atom:link href="https://blog.margrop.net/tag/springfox/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>修复 Spring 2.3.x 升级到更新版本出现的跨域问题</title>
      <link>https://blog.margrop.net/post/fix-spring2-allowed-origins-error/</link>
      <pubDate>Sun, 12 Mar 2023 20:20:01 +0800</pubDate>
      <guid>https://blog.margrop.net/post/fix-spring2-allowed-origins-error/</guid>
      <description>&lt;h1 id=&#34;异常提示&#34;&gt;异常提示：&lt;/h1&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;When allowCredentials is true, allowedOrigins cannot contain the special value &amp;#34;*&amp;#34; since that cannot be set on the &amp;#34;Access-Control-Allow-Origin&amp;#34; response header. To allow credentials to a set of origins, list them explicitly or consider using &amp;#34;allowedOriginPatterns&amp;#34; instead.&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;#解决办法：&#xA;跨域配置报错，将&lt;code&gt;.allowedOrigins&lt;/code&gt;替换成&lt;code&gt;.allowedOriginPatterns&lt;/code&gt;即可。&lt;/p&gt;</description>
    </item>
    <item>
      <title>修复 SpringFox 3.0.0 不兼容 SpringBoot 2.6.4 的问题</title>
      <link>https://blog.margrop.net/post/fix-springfox-documentation-plugins-bootstrapper-npe/</link>
      <pubDate>Sun, 12 Mar 2023 17:56:57 +0800</pubDate>
      <guid>https://blog.margrop.net/post/fix-springfox-documentation-plugins-bootstrapper-npe/</guid>
      <description>&lt;h1 id=&#34;异常提示&#34;&gt;异常提示：&lt;/h1&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Failed to start bean &amp;#39;documentationPluginsBootstrapper&amp;#39;; nested exception is java.lang.NullPointerException&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h1 id=&#34;原因分析&#34;&gt;原因分析：&lt;/h1&gt;&#xA;&lt;p&gt;&lt;code&gt;SpringFox&lt;/code&gt; 3.0.0 不兼容 &lt;code&gt;SpringBoot&lt;/code&gt; 2.6.4&lt;/p&gt;&#xA;&lt;h1 id=&#34;解决方案&#34;&gt;解决方案：&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;参考链接&#xA;&lt;a href=&#34;https://stackoverflow.com/questions/40241843/failed-to-start-bean-documentationpluginsbootstrapper-in-spring-data-rest&#34;&gt;https://stackoverflow.com/questions/40241843/failed-to-start-bean-documentationpluginsbootstrapper-in-spring-data-rest&lt;/a&gt;&#xA;&lt;a href=&#34;https://github.com/springfox/springfox/issues/3462#issuecomment-1010721223&#34;&gt;https://github.com/springfox/springfox/issues/3462#issuecomment-1010721223&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
    <item>
      <title>使用SpringFox 3.0.0版本出现NumberFormatException的解决办法 </title>
      <link>https://blog.margrop.net/post/java-springfox-number-format-exception/</link>
      <pubDate>Mon, 18 Jan 2021 16:39:34 +0800</pubDate>
      <guid>https://blog.margrop.net/post/java-springfox-number-format-exception/</guid>
      <description>&lt;p&gt;最近升级了SpringFox至3.0.0版本，访问接口文档，出现了一堆异常&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;Illegal DefaultValue null for parameter type integer&lt;/code&gt;&#xA;&lt;code&gt;java.lang.NumberFormatException: For input string: &amp;quot;&amp;quot;&lt;/code&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
