Appfuse 3.0中文乱码解决

修改项目pom.xml,加入如下第8行内容:

<plugin>
	<groupId>org.codehaus.mojo</groupId>
	<artifactId>native2ascii-maven-plugin</artifactId>
	<version>1.0-beta-1</version>
	<executions>
		<execution>
			<id>native2ascii-utf8</id>
			<phase>process-resources</phase><!-- 解决中文乱码 -->
			<goals>
				<goal>native2ascii</goal>
			</goals>
			<configuration>
				<encoding>UTF8</encoding>
				<includes>
					<include>ApplicationResources_el*.properties</include>
					<include>ApplicationResources_zh*.properties</include>
					<include>ApplicationResources_ko*.properties</include>
					<include>displaytag_el*.properties</include>
					<include>displaytag_zh*.properties</include>
				</includes>
			</configuration>
		</execution>
	</executions>
</plugin>

 

你可能感兴趣的:(乱码,Appfuse)