Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
2
20240528-BJava
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Patryk Czarnik
20240528-BJava
Commits
96493b6a
Commit
96493b6a
authored
Jun 25, 2024
by
Patryk Czarnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Utworzenie projektu Hibernate
parent
d419757d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
2 deletions
+41
-2
PobieranieJSON.java
PC28-RestKlient/src/main/java/waluty/PobieranieJSON.java
+1
-2
.gitignore
PC30-Hibernate/.gitignore
+8
-0
pom.xml
PC30-Hibernate/pom.xml
+32
-0
No files found.
PC28-RestKlient/src/main/java/waluty/PobieranieJSON.java
View file @
96493b6a
...
@@ -28,8 +28,7 @@ public class PobieranieJSON extends Pobieranie {
...
@@ -28,8 +28,7 @@ public class PobieranieJSON extends Pobieranie {
}
}
private
TabelaWalut
pobierzZAdresu
(
String
adres
)
throws
BladAplikacji
{
private
TabelaWalut
pobierzZAdresu
(
String
adres
)
throws
BladAplikacji
{
try
{
try
(
HttpClient
httpClient
=
HttpClient
.
newHttpClient
())
{
HttpClient
httpClient
=
HttpClient
.
newHttpClient
();
URI
uri
=
new
URI
(
adres
);
URI
uri
=
new
URI
(
adres
);
HttpRequest
request
=
HttpRequest
.
newBuilder
(
uri
).
build
();
HttpRequest
request
=
HttpRequest
.
newBuilder
(
uri
).
build
();
HttpResponse
<
InputStream
>
response
=
httpClient
.
send
(
request
,
BodyHandlers
.
ofInputStream
());
HttpResponse
<
InputStream
>
response
=
httpClient
.
send
(
request
,
BodyHandlers
.
ofInputStream
());
...
...
PC30-Hibernate/.gitignore
0 → 100644
View file @
96493b6a
/target/
/.settings/
/.classpath
/.project
/*.iml
/.idea/
PC30-Hibernate/pom.xml
0 → 100644
View file @
96493b6a
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
pl.alx.kjava
</groupId>
<artifactId>
PC30-Hibernate
</artifactId>
<version>
1.0
</version>
<properties>
<maven.compiler.source>
21
</maven.compiler.source>
<maven.compiler.target>
21
</maven.compiler.target>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>
org.hibernate.orm
</groupId>
<artifactId>
hibernate-core
</artifactId>
<version>
6.5.2.Final
</version>
</dependency>
<dependency>
<groupId>
org.postgresql
</groupId>
<artifactId>
postgresql
</artifactId>
<version>
42.7.3
</version>
<scope>
runtime
</scope>
</dependency>
</dependencies>
</project>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment