Java connection to various pitfalls of sqlserver (test by cainiao) and javasqlserver
As a cainiao, when I first started to use java to connect to sqlserver, it took a short time,
I think it is necessary to share my experience with you.
(Because I step on most pitfalls)
First pitfall: load the driver. Java requires a d
latter one is applicationcontext.xml configuredBut the @get method is not directly in the path central to obtain, to borrow external tools or write a test class, of course, I chose the former, online Baidu found the big God said postman Google browser plug-in , their own groping to test, no longer worry about interface debugging.The Get interface is as follows:6
I saw someone talk about the performance of Java EE tuning, although this piece is not their own expertise, but the pig raised more, can not help but jump out to say a few words.
Although almost every book on performance tuning begins, do not need to do the tuning, but I personally think that all systems before the line, should do a basic pressure test and related performance problems to detect, but under
ObjectiveTwo days ago in the company's internal blog to see a colleague to share the online services hanging off cpu100% article, let me think of hashmap in the improper use of the death cycle problem, here do a collation and summary, also by the way review under HashMap.Directly on the test code Depending on the machine configuration and performance, the number of threads and put quantities of the
Online to see 3 good Java Development engineers on the machine pen questions, there is no answer here to write the answer, for everyone reference.1, a program, enter 10 integers, and put in the array, the first descending output all the number, and then statistics and output the number of positive, negative and zero650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/56/CA/wKioL1SOYM3hdwnyAAD5bEx1wM82
The first time with Java tune Webervice, online read a lot of blogs, can use a few, integrated several blogs, finally successfully called.Package com.casco.action;Import Org.apache.axis.client.Call;Import Org.apache.axis.client.Service;Import Javax.xml.namespace.QName;public class Syncprojectdata {public void Syncproject (String projectno){ } public static void Main (string[] args) {try {String endpoint = "
Before downloading a lot of video on the Internet, decompression, found inside each file has a long list of URLs, cause I can not see the name of each video exactly what is called?
Online Search Some batch renaming method, but is not what I want, since so, simply do it yourself with Java write a bar. The test should be no problem, share it now.
First code:
some time ago because to participate in a written test, during the preparation of the online found two articles on the written topic, one of the In the process of finding these answers, I recorded the relevant answers and formed the following things. Need to explain that the following answer must have a lot of incomplete or even wrong place, need you to correct and perfect it, do not throw my eggs ah.I hope
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.