Похожие чаты

Hi guys, i'm using intellij and i need to use

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.

9 ответов

25 просмотров

maven or manually

Add the library in maven

Mattia- Автор вопроса
Nader Jafari
maven or manually

I'd prefer to do it manually if you can orientate me on the jar, which i can't find

Mattia- Автор вопроса
Roy
Add the library in maven

Is it possible to add maven to an already started project in intellij?

Mattia
Is it possible to add maven to an already started ...

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.

Mattia- Автор вопроса
Dmytro Buryak
My 2 cents: I completely agree with this part of @...

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

Mattia
I am having a uni project, but i'm supposed to lea...

The term you're looking for is a dependency manager

Похожие вопросы

Обсуждают сегодня

как правильно удалить сддм? прописал в etc/portage.use/plasma-meta -sddm , но при обновлении юзов мне предлагает поставить lightdm (ещё лучше 😡), добавил туда - display-manage...
REDis
25
Except the wealthiest, people that buy crypto want to "cash out" at the end of the day, one way or another. Converting to fiat is craziness, converting to BTC is unwise. Hold ...
Erdelanax
2
#include <stdio.h> #include <stdlib.h> #include <time.h> void mass_first_generate(int mass[5][7]) {     for (int N = 0; N < 5; N++) {         for (int A = 0; A < 7; A++) {   ...
Чувак
6
Всем привет! Решаю 99 OCaml Problems и столкнулся со следующей проблемой (прошу палками не забивать, я OCaml практически не трогал до этого момента): open OUnit2 let create_...
К|/|pи/\/\ 6е3yглbIи
2
Всем привет! Имеется функция: function IsValidChar(ch: UTF8Char): Boolean; var i: Integer; ValidChars: AnsiString; begin ValidChars := 'abcdefghijklmnopqrstuvwxyzABCDE...
Евгений
44
возможно ли как-то передать в электрон или таури медиа поток с рендера 2д движка? двиг запускается как dll, а дальше надо как-то отправлять рендер кодировать не подходит, зр...
Kyle Nekto
7
https://www.linkedin.com/posts/ugama-benedicta-kelechi-codergirl-103041300_mobiledevelopment-fluttertraining-handsonlearning-activity-7263445699227254784-IdHB?utm_source=share...
CoderGirl
16
like, question: int b = 99999; is this valid and predictable C?
Ludovic 'Archivist' Lagouardette
15
Помогите пожалуйста. Делаю систему плагинов. Проблема сейчас в такая: плагины загружаются в основном потоке. FLibHandle := SafeLoadLibrary(FFileName) Но нужно еще выполнить фу...
Илья 🤣
10
VIP-397 BNBx Oracle implementation upgrade Summary This proposal, if approved, will upgrade the implementation of the BNBx Oracle contract on Venus from version 1 (V1) to v...
Venus Announcements
2
Карта сайта