few words said, beginning to:
Recently assigned to a set of CAS single sign-on custom login page. (no contact before single sign-on (sso), also good is standing on the shoulders of giants. Process is smooth, but when do the custom message had a problem. Other blog in international documents writing, in a custom exception class doesn't work. In the case of a mystery, has carried on the back to CAS. I use a CAS4.3 version (version inconsistencies might exist certain differences). Behind the problem solved... Above
1. Custom exception class (I'm a custom exception class are inherited AccountException)

2. In the application. The properties file custom exception class added, otherwise can't identify

3. In doAuthentication exception thrown from the definition in ()

To capture automatically. After exception is thrown, and then go to internationalization files for configuration
4. In international documents (messages_zh_CN properties) configure a custom message

5. Under normal circumstances so that you can use.

The front page of this code is used to output message
For the first time to write blog. Write wrong place to do not spray, welcome leaders comment
