Pom.xml in the project Springboot Oracle configuration errors

These days just learning Springboot meet a variety of pit ah, there is a record to add Oracle solutions references.

Premise: development tools IDEA2019.2, SpringBoot, maven project; Oracle version is Oracle11g; Oracle has been installed into the jar package dependencies in the maven local repository.

First of all, there's a problem:

  In the above background, pom.xml file adds Oracle's dependency, but still error when updatemaven project, could not find com.oracl: ojdbc6: 11.2.0.1.0 (shown in red in the document), as As shown: in the compiler where you can see the contents of the error. The Internet for a long time, tried several approaches are not feasible.

Second, the cause of the problem:

  Oracle said that because the maven dependency for a fee, and therefore can not be downloaded. But I have installed to the local maven in the results or not. Therefore, specific reason and now I could not find.

Finally, said the most important solution:

  Happened to see a blog, try his method, the result was passed, specially about his own record. Specific operation is very simple, that is the version number (version label content) modified to 11.2.0.3, allow the system to download the package from the jar Ali cloud. The results are shown:

Note: Since it is a reference to other people, not to respect the original, to include a reference link to the original blog: [https://blog.csdn.net/wanglikun132/article/details/79069180]

Guess you like

Origin www.cnblogs.com/qingtian-jlj/p/11354471.html