Private logs of Shanghai Java application Q &
Materials 21:27:40 read 0 comments 0 font size: large and small subscriptions
Zhu Rui 20:18:08
Hi!
Saturday 20:18:35
Hi!
Saturday 20:19:03
I took part in your application this afternoon.
Saturday 20:19:12
Java Technician
Zhu Rui 20:19:46
Okay.
Zhu Rui 20:19:50
Please wait.
Saturday 20:20:01
Oh, okay.
Zhu Rui 20:22:41
Well, I don't seem to have seen your questions.
Saturday 20:23:40
Well, I didn't receive a notice from my teacher at work, so I didn't submit questions ~ A few days ago, the teacher told me that I had a chance to try it.
Zhu Rui 20:23:52
Oh. Okay.
Zhu Rui 20:23:54
No relationship
Zhu Rui 20:23:59
Have you read the questions?
Zhu Rui 20:24:04
Are you at work?
Zhu Rui 20:24:14
Have you got a job?
Saturday 20:24:18
En has left the company and has not read the question.
Zhu Rui 20:24:34
Why did I leave?
Saturday 20:25:40
At that time, I went to study for the purpose and told the General Manager that at the beginning of the month, the project was changed temporarily and I had to do more work for a few days.
Zhu Rui 20:28:00
Oh
Zhu Rui 20:28:02
Okay.
Zhu Rui 20:28:21
So what project are you working on there? Can you introduce it?
Saturday 20:28:42
A real estate website in ASP language
Saturday 20:29:36
The address is www.whhouse.com. Currently, only two welcome pages are available.
Zhu Rui 20:30:14
Regardless of the language. The idea of programming is the same. Can you introduce this website? What have you done? What have you learned?
Saturday 20:33:45
I am mainly responsible for page layout, dynamic generation of all front-end pages, modification of templates and configuration files based on website conditions, and some methods.
Then, we use regular expressions to create a news collector, and collect news information from other websites to fill in the database and generate static news.
Saturday 20:34:25
Two other persons are responsible for collecting information about second-hand houses and real estate, and one is responsible for advertising artist.
Zhu Rui 20:34:41
How did you do the news collector? Web crawler?
Saturday 20:35:31
It is my own use of vs2008. No web crawler can capture some webpage tag information through regular expressions to collect the content in it.
Zhu Rui 20:35:58
Oh. 2008 features
Saturday 20:37:53
The time is relatively tight, so the collector's function is not very powerful. Basically, a website corresponds to a collector, modifying the Regular Expression in it, and collecting more than 30 news topics and making 5.
Zhu Rui 20:39:01
Oh. Okay. No problem.
Zhu Rui 20:39:06
Your Java
Zhu Rui 20:39:12
Are you familiar with this?
Saturday 20:40:13
Yes, the major in the school is Java ASP. It just took three days to learn it. The programming idea is the same, that is, the syntax is slightly different.
Zhu Rui 20:40:37
Yes
Zhu Rui 20:40:54
Is Java SSH your main learning?
Saturday 20:42:02
In Java, I mainly learned about struts spring hibernate.
For Java, I also participated in the property management platform of chengsoft in Wuhan. One module is the SSI architecture.
Zhu Rui 20:43:22
Let's talk about this project?
Saturday 20:49:52
This is the management platform of a property company developed by chengsoft. It mainly includes permission assignment, real estate management, owner management, company management, sand-removing greening, complaint management, and other modules, I am responsible for complaint management, making JSP dynamic pages, performing operations through pages, and processing requests through struts. What was hard to contact at that time was the ibats database processing statements and the use of e3table, in the process, Cheng soft's senior manager, our team, gave us a lot of guidance ~
Zhu Rui 20:51:35
Okay.
Zhu Rui 20:51:47
What is your understanding of SSI?
Zhu Rui 20:52:01
You can separate them one by one.
Zhu Rui 20:52:10
Description
Saturday 20:56:20
The struts processor is responsible for receiving page requests for corresponding processing.
Spring can minimize coupling and centrally manage the classes to be called on each page for convenient modification and use.
Both ibats and hibernate perform addition, deletion, modification, and query on database objects. However, ibats may be difficult to compile and write, but it is more efficient.
Zhu Rui 20:56:51
Does spring involve page content?
Zhu Rui 20:57:17
In addition, where do you say ibats is more efficient?
Saturday 20:57:19
No.
Saturday 20:58:12
In terms of statement execution optimization, Hibernate uses ing tables.
Zhu Rui 20:59:36
Well
Zhu Rui 21:00:11
What should I pay attention to when spring and hibernate (or ibates) are combined?
Saturday 21:01:51
-Sorry, I did not notice this problem during use.
Zhu Rui 21:03:47
Oh. Okay. Do you know the transaction processing of hiberante?
Saturday 21:04:35
I know there are transactions in spring-Hibernate is usually mapped and then added, deleted, modified, and queried directly using template statements.
Zhu Rui 21:04:53
How to handle transactions?
Saturday 21:06:59
Sorry, I don't know ~~
Zhu Rui 21:07:32
Can you tell me about spring's IOC?
Saturday 21:08:31
Is the enhancement class, that is, some methods such as log writing can be added during request operations.
Zhu Rui 21:10:06
Well. If spring is not used in the project, how do you implement the benefits of spring?
Saturday 21:10:44
Perform some interfaces and abstract classes to minimize coupling and perform unified call of methods.
Zhu Rui 21:11:18
How can we reduce coupling?
Saturday 21:12:01
Interface and abstract class, and then call the parent class method in the implementation class
Zhu Rui 21:12:08
If you use classes, you must use new to obtain instances. Coupling is bound
Saturday 21:12:21
Yes
Zhu Rui 21:13:07
If there are multiple impl classes, we need to create a new
Zhu Rui 21:13:10
?
Saturday 21:13:54
Maybe you can define an attribute that can be called by a subclass in the parent class? Or change the method to static?
Zhu Rui 21:14:28
Have you learned design patterns?
Saturday 21:14:57
After learning the abstract factory design model, the teacher also talked about the simple factory design model.
Zhu Rui 21:16:23
What is the abstract factory like?
Saturday 21:18:08
It's been too long to remember. I just remember that the main thing is interface inheritance methods and the like =.
Zhu Rui 21:19:10
Let's take a look. The problem I asked you just now uses the abstract factory idea. You can see if it can be solved.
Saturday 21:19:22
Oh, okay.
Zhu Rui 21:20:13
The last question. What are your requirements for salary?
Saturday 21:20:59
If the accommodation can solve the problem, I hope it will be 2000.
Zhu Rui 21:21:58
Oh. Okay. I understand. I will discuss it at the company and give you a reply as soon as possible.
Saturday 21:22:07
Thank you. Goodbye.
Zhu Rui 21:22:33
Okay.