<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>爱周末 &#187; spring boot</title>
	<atom:link href="http://zhoumo123.cn/category/spring-boot/feed" rel="self" type="application/rss+xml" />
	<link>http://zhoumo123.cn</link>
	<description>知识分享，共同进步。zhoumo123.cn</description>
	<lastBuildDate>Thu, 07 Nov 2019 05:53:49 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.0.1</generator>
	<item>
		<title>@spring.active@  Failed to load property source from location &#8216;classpath:/application.yml&#8217;</title>
		<link>http://zhoumo123.cn/spring-boot/3649.html</link>
		<comments>http://zhoumo123.cn/spring-boot/3649.html#comments</comments>
		<pubDate>Thu, 07 Nov 2019 03:22:24 +0000</pubDate>
		<dc:creator><![CDATA[zhangc]]></dc:creator>
				<category><![CDATA[spring boot]]></category>

		<guid isPermaLink="false">http://zhoumo123.cn/?p=3649</guid>
		<description><![CDATA[spring boot启动报错 [restartedMain] ERROR org.springframework.boot.SpringApplication &#8211; Application run failed java.lang.IllegalStateException: Failed to load property source from location &#8216;classpath:/application.yml&#8217; Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scannin ...  <a href="http://zhoumo123.cn/spring-boot/3649.html">  阅读全文 </a>]]></description>
				<content:encoded><![CDATA[<p><strong>spring boot启动报错</strong></p>
<p>[restartedMain] ERROR org.springframework.boot.SpringApplication &#8211; Application run failed<br />
java.lang.IllegalStateException: Failed to load property source from location &#8216;classpath:/application.yml&#8217;</p>
<p>Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token<br />
found character &#8216;@&#8217; that cannot start any token. (Do not use @ for indentation)<br />
in &#8216;reader&#8217;, line 17, column 13:<br />
active: @spring.active@<br />
^</p>
<p><strong>解决办法：</strong></p>
<p><strong>方式一：</strong></p>
<p>在 application.yml中 将 <span style="color: #3366ff;"><strong>active: @spring.active@ </strong><span style="color: #000000;">加上英文引号，</span></span></p>
<p>改为 <strong><span style="color: #3366ff;">active: &#8220;@spring.active@&#8221;</span></strong></p>
<p><strong>方式二：</strong></p>
<p>使用阿里云的maven仓库，在项目根目录右键，并点击maven的reimport。</p>
<p><a href="http://zhoumo123.cn/wp-content/uploads/2019/11/spring-boot.jpg"><img class="alignnone wp-image-3658 size-full" title="@spring.active@" src="http://zhoumo123.cn/wp-content/uploads/2019/11/spring-boot.jpg" alt="spring-boot @spring.active@" width="619" height="291" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://zhoumo123.cn/spring-boot/3649.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
