Recently consider the issue of change work, so cast resume interview, interview 5 Companies senior Java engineer, There are 4 gave me an offer, think of summing up the interview experience, convenient recently are looking for opportunities for you
first, No pen question
Do not know whether or not the position is not met, interview, do not need to do a pen test, but fill out a personal information form, or direct interview
two or three major framework issues
1, Spring transaction isolation, and say the difference between each isolation solution: Spring transaction
2. The propagation behavior of spring transaction, and say the difference of each propagation behavior: spring transaction
3, the difference between hibernate and mybatis/ibatis, why choose? Answer: the comparison between Hibernate and MyBatis
4, struts and the advantages and disadvantages of spring mvc, let you choose how to choose the Answer: Spring MVC and the difference between struts
5. Brief talk about spring transaction mechanism solution: Spring transaction mechanism
6, Spring 4.0 New Nature answer: Spring4 features
third, load balancing, cluster-related1, WebLogic Load Balancing principle and the configuration of the cluster solution: a, WebLogic Load Balancing principle b, load balancing and cluster configuration (reference)
2, Nginx+tomcat+redis to achieve load balancing, resource separation, session sharing solution: Configuration reference
3, nginx configuration file detailed--nginx.conf answer: nginx configuration file Detail Description
Iv. Project Optimization related1, the Web How to optimize the project solution: I've done this ONCE. Web project performance Optimization (collation)
2. How many kinds of singleton mode? How to optimize? Solution: 7 usage in a singleton pattern
3, simple talking about the principle and implementation of thread pool: threading principle and implementation
v. Concurrency and security aspects1, how to deal with the project concurrency? (we are web projects) answer: high concurrency Web site solution, in addition, There are database optimistic lock, database read and write separation, using message queuing, multi-use stored procedures and so on
2, simple to say that the function of the privileges of the level of permission vulnerabilities and vertical access to the vulnerability of the scene and solution (because we currently have permission level is functional PERMISSIONS) answer:
A, Horizontal permissions vulnerability, such as
Assuming that the agency has user A and User B two users, where A has 1, 2, and 3 permissions, User B has 2 and 3 permissions, this time assume that User B knows 1, and to add 1 of their rights, this is the level of permissions Vulnerability.
Current Solutions:1, restrict the entrance, so that User B cannot edit their own permissions 2, to User B can not scale up. The most fundamental solution is to drill down to data permissions
Answer: Horizontal Permissions Vulnerability and resolution
B, Vertical Permissions Vulnerability
Answers: Vertical Permissions Vulnerability Cases and solutions
3, the platform on the picture how anti-theft chain answer: http Download anti-theft chain principle: http protocol field Referer record to implement
4, How to distinguish the uploaded pictures is not a Trojan horse? answer: 1, look at the uploaded picture suffix 2, How to suffix is tampered with, then each file has a magic digital file upload-magic number
5, the principle and implementation of Message Queuing answer: 1, Message Queuing principle 2, comprehensible message Queue ActiveMQ
Vi. Database Aspects1. The MySQL query field area is not case-sensitive? Answer: do not differentiate, even if the value is not differentiated (i asked at the time, the area of the application of the size of the meaning of what, the interviewer did not Say)
2, simply say the database cluster and load balancing, distributed (i do not understand this piece) answer: database load Balancing and cluster reference, reference 2
3, the structure and advantages of stored procedures: approximate structure
Advantages and disadvantages of stored procedures
4, the trigger principle and the role of the Answer: reference
In general, there are some forget, and so remember to add, or other brothers and sisters met, can also private chat or reply to me, hoping to help everyone ~
Interview-java Senior Engineer