Commits

conanca committed f54dd4f

增加提示信息;编译时设置编码

Comments (0)

Files changed (3)

 	</dependencies>
 	<build>
 		<finalName>nutzdemo-shiro</finalName>
+		<plugins>
+			<plugin>
+				<artifactId>maven-compiler-plugin</artifactId>
+				<configuration>
+					<source>1.6</source>
+					<target>1.6</target>
+					<encoding>UTF-8</encoding>
+				</configuration>
+			</plugin>
+		</plugins>
 	</build>
 </project>

src/main/java/com/dolplay/nutzshiro/filter/AuthenticationFilter.java

 					logger.info("登录失败");
 				}
 			} catch (Exception e) {
+				logger.error("登录出错", e);
 				view = new ViewWrapper(new JspView("/index"), "登录出错");
 			}
 		}

src/main/webapp/index.jsp

       </shiro:authenticated>
       <shiro:guest>
         <p>请您先登录</p>
+        <p>管理员用户/密码 : admin/123</p>
       </shiro:guest>
     </div>