At first, an application was mounted to a VM, And the VM crashed yesterday morning. I was thinking about migrating to SAES, but I found that the JVM beans consumed by SAES are too fast (PS: I am an intermediate developer, 10000 yundou every month, if any of you can control sae java Beans, please let me know. Thank you.) You can only consider Baidu's BAE.
I have played BAE several times before, but they are all small programs. It's very easy to do whatever you want. Now we are faced with a project that has been running on the VM for three months for migration. It's a headache. You have no idea. First, Baidu and google found a circle and read the experiences written by the experts. And then start to try again ......
After half a day of research, the code was finally migrated. The results are also quite simple .. Next, let's share with you how to avoid any detours when using bae java.
1. First download an eclipse integrated with the BAE Development Environment (you can also install the plug-in)
At the bottom of the pageOne-click InstallationThat is, eclipse. download it to the local directory and unzip it.
Http://developer.baidu.com/wiki/index.php? Title = docs/cplat/ide/install
2. Go to BAE to quickly create a JAVA application
3. Manage the current project, click cloud environment (BAE)-> Version Management
To create a version, enter the version number. For example, enter 1. You do not need to upload the war package. Click Save.
1. The project contains the jar package in the BAE environment. When you add a jar package locally, check whether the jar package you want to add exists. Otherwise, a conflict occurs.
2. JAR is directly added to the lib folder under the project root directory, rather than the lib under the WEB-INF, remember ..
3. bae imposes restrictions on partial classification. For details, refer to the description of BAE.
4. Read the java manual carefully.
Http://developer.baidu.com/wiki/index.php? Title = docs/cplat/rt/java & oldid = 10053