Questa è la mia dichiarazione messageResourceSpring Framework: Nessun messaggio trovato sotto il codice per il locale
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">
<!-- Auto-detect controllers in this package -->
<context:component-scan base-package="levelup.world.web" />
<!-- Prepend /WEB-INF/jsp/ and append .jsp to the view name -->
<bean id="viewResolver"
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/WEB-INF/jsp/" />
<property name="suffix" value=".jsp" />
</bean>
<!-- Access resource bundles with the specified basename -->
<bean id="messageSource"
class="org.springframework.context.support.ReloadableResourceBundleMessageSource"
p:basename="/WEB-INF/messages/" />
</beans>
Quando eseguo la mia applicazione, questo errore si presenta
No message found under code 'country.plural' for locale 'fil_PH'
ora all'interno della cartella i miei messaggi all'interno web- inf, ho le seguenti proprietà del messaggio
messages_en.properties
messages_fr.properties
messages.properties
Cosa mi manca qui?
First tutti i vostri messaggi qui? fil_PH può essere un altro file di proprietà per la cartella dei messaggi. – erhun