[Problem] record recording problems encountered in the development

[A] [resolved]

Type table typeidcontext

Details Table infoidtids

Types of content based on fuzzy query, for more details in the corresponding table data.

 

[Difficult]: the content fuzzy, found a plurality of type id, info is also included in a plurality tids id. I did not think SQL, has been how to deal with the background data.

[Solution]: to change the thinking, if the query input when the condition is, first ignoring the vague condition, to identify other qualified data, then do not be paged.

Establish infoVO class, add context properties. List reverse traversal results (because it involves the deletion), remove each context attribute List object VO, the indexOf see if it contains an input word, comprising the operations do not exclude to remove off the resulting List is the corresponding The data. List operation can be directly on the tab, with List.subString (begin, end)

[Two] [resolved]

Form data do show, pure numbers or letters not wrap

[Difficulty]: Sometimes Google access is no problem, but a problem ie

[Solution]: Word-BREAK: BREAK-All attributes. ie no effect may be, plus one pair <p> tags in the text to.

Opera does not currently support word-break property.

[Three] [resolved]

Shiro third party access, the demand by the client platform jump directly to our platform, do not put a landing-related information, direct jump.

Ideas: shiro have access to time-division authentication and anonymous, a custom interface that can be accessed anonymously. Verify that the interface parameter information in the interface, the interface parameter contains the login information.

Obtain login information, shiro directly to verify, verify successful platform that is home to jump, jump verification failure custom error page.

Code:

// Get SecurityManager plant
        Factory's <org.apache.shiro.mgt.SecurityManager> Factory new new IniSecurityManagerFactory = ();
        // get SecurityManager instance and bind to SecurityUtils  
        SecurityManager securityManager factory.getInstance = ();  
        SecurityUtils.setSecurityManager (securityManager);  
        // get Subject and create a user name / password authentication token (ie, the user identity / credential) 
        Subject subject = SecurityUtils.getSubject ();
        UsernamePasswordToken token = new new UsernamePasswordToken (app_uid, uid_passwd);
        the try {
            // log on, namely authentication  
            subject .login (token);
        } the catch (Exception E) {
            // login fails
            System.out.println (e);
            System.out.println ( "User authentication failed information");
            token.clear ();
            return "error";
        }

[Four] browser scroll bar [has been resolved

::-webkit-scrollbar{
    width:4px;
    height:4px;
}
::-webkit-scrollbar-track{
    background: #f6f6f6;
    border-radius:2px;
}
::-webkit-scrollbar-thumb{
    background: #9BCA63;
    border-radius:2px;
}
::-webkit-scrollbar-thumb:hover{
    background: #747474;
}
::-webkit-scrollbar-corner{
    background: #f6f6f6;
}

Guess you like

Origin blog.csdn.net/yl10164927/article/details/79061050
Recommended