the SqlParameterSource class to compose parametrized sql queries.
What's the easiest way to include such things in my project?
I've understood that it may be related to Spring but i understand nothing of it.
maven or manually
Add the library in maven
I'd prefer to do it manually if you can orientate me on the jar, which i can't find
Is it possible to add maven to an already started project in intellij?
You're talking like you do not have any basic understanding about how Java development works. I'd recommend you to start with the basics on how to make a Java project before you start an actual project.
My 2 cents: I completely agree with this part of @Archcry 's message: You're talking like you do not have any basic understanding about how Java development works. I'd recommend you to start with the basics on how to make a Java project before you start an actual project I highly recommend you to NOT manage jars by yourself. Because of 4 reasons: - you won't learn anything useful for your career, neither you won't understand anything deeper - nobody is doing it manually these days, unless it's 15-20 years old project - you'll be applying your effort and mental capacity to a wrong thing, thus feel exhausted and hate what your'e doing before you start doing some fun stuff - nowadays projects depend on tons of external libraries (project currently opened in my IDE depends on 230 jars, for example, and it's a microservice which is doing not so much things to be true) What can be useful to understand: - how java finds classes and what is classpath. It searches the classpath sequentially in direct order until it finds class imported in your code/3-rd party lib code. So order matters. https://docs.oracle.com/javase/8/docs/technotes/tools/findingclasses.html - understand what "transitive dependencies" are (your app needs some library, which depends on another library, which depends on another one and so on), and how easy it is to run into version conflict. Do you really want to manage conflicts yourself?))) https://docs.gradle.org/current/userguide/dependency_resolution.html#sec:conflict-resolution - there's no information about transitive dependencies in the library jar itself. So you can't just go to some website, download some library, manually add it to your project and voila - it works. No. You would need to figure out all other libraries it depends on, and exact version of each. And go download those. And then figure out all verisons of those, and download those also. And so on, recursively. How much time will it take? Even for doing this for 10 jars is huge amount of work. And the most time-consuming part here is "figure out which VERSIONS of other libraries it depends on". That is not something you can easily find. That is the information that is published to artifacts servers when jar is built and uploaded there. Reading this meta-information is the job for build system, not for human. And when you comprehend what a time waste is that, you will realize that it's much better for your career, professional development, physical and mental health of you and your beloved ones, to spend that time on learning a build system, maven or gradle.
managing jars is a terror, can confirm
I am having a uni project, but i'm supposed to learn stuff like this from "wherever" and also the basic Java stuff was not well explained Coming from C/C++ projects(used well known libraries such as OMP or openCV) and python's pip easy tool, this approach to adding libraries is completely new to me I will surely go into Maven by now, thank you for your insight
The term you're looking for is a dependency manager
Обсуждают сегодня