<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Spring on Stefan Litsche</title>
		<link>https://biosoft.de/tags/spring/</link>
		<description>Recent content in Spring on Stefan Litsche</description>
		<generator>Hugo</generator>
		<language>en-US</language>
		
		
		
		
			<lastBuildDate>Thu, 08 Sep 2011 14:33:00 +0000</lastBuildDate>
		
			<atom:link href="https://biosoft.de/tags/spring/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Spring: PropertyPlaceholderConfigurer</title>
				<link>https://biosoft.de/posts/spring-placeholderconfigurer/</link>
				<pubDate>Thu, 08 Sep 2011 14:33:00 +0000</pubDate>
				<guid>https://biosoft.de/posts/spring-placeholderconfigurer/</guid>
				<description>&lt;p&gt;Problem: in der &lt;code&gt;context.xml&lt;/code&gt; Konfigurationsdatei für den Spring&#xA;Applicationcontext hatte ich einen &lt;a href=&#34;http://static.springsource.org/spring/docs/2.5.5/api/org/springframework/beans/factory/config/PropertyPlaceholderConfigurer.html#setIgnoreUnresolvablePlaceholders%28boolean%29&#34;&gt;PropertyPlaceholderConfigurer&lt;/a&gt;&#xA;konfiguriert.  Nur wurden keine Platzhalter ersetzt.&lt;/p&gt;&#xA;&lt;p&gt;Erklärung: ich hatte in meiner Anwendung versehentlich eine BeanFactory&#xA;erstellt, um mir die Bean geben zu lassen.  Eine Beanfactory hat aber&#xA;&lt;a href=&#34;http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/beans.html#context-introduction-ctx-vs-beanfactory&#34;&gt;wesentlich weniger&#xA;Funktionen&lt;/a&gt;&#xA;als ein ApplicationContext. Wesentlich für das oben genannte Probelm ist der&#xA;Hinweis, dass die BeanFactory keinen &lt;code&gt;BeanFactoryPostProcessor&lt;/code&gt;&#xA;registriert. Jedoch ein &lt;code&gt;PropertyPlaceholderConfigurer&lt;/code&gt; ist jedoch ein&#xA;&lt;code&gt;BeanFactoryPostProcessor&lt;/code&gt;.  Und diese werden nur ausgeführt, wenn die Anwendung&#xA;einen &lt;code&gt;ApplicationContext&lt;/code&gt; ausführt.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
