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
f221ff92
Commit
f221ff92
authored
Jun 14, 2024
by
Patryk Czarnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Utworzenie projektu RestSerwer za pomocą IntelliJ
parent
14ee991f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
107 additions
and
0 deletions
+107
-0
.gitignore
PC27-RestSerwer/.gitignore
+12
-0
pom.xml
PC27-RestSerwer/pom.xml
+63
-0
HelloApplication.java
...in/java/pl/alx/kjava/pc27restserwer/HelloApplication.java
+10
-0
HelloResource.java
.../main/java/pl/alx/kjava/pc27restserwer/HelloResource.java
+15
-0
beans.xml
PC27-RestSerwer/src/main/resources/META-INF/beans.xml
+7
-0
No files found.
PC27-RestSerwer/.gitignore
0 → 100644
View file @
f221ff92
/target/
/.settings/
/.classpath
/.project
/*.iml
/.idea/
/mvnw
/mvnw.cmd
/.mvn/
PC27-RestSerwer/pom.xml
0 → 100644
View file @
f221ff92
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
pl.alx.kjava
</groupId>
<artifactId>
PC27-RestSerwer
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<name>
PC27-RestSerwer
</name>
<packaging>
war
</packaging>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<maven.compiler.target>
11
</maven.compiler.target>
<maven.compiler.source>
11
</maven.compiler.source>
<junit.version>
5.10.0
</junit.version>
</properties>
<dependencies>
<dependency>
<groupId>
jakarta.enterprise
</groupId>
<artifactId>
jakarta.enterprise.cdi-api
</artifactId>
<version>
4.0.1
</version>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
jakarta.ws.rs
</groupId>
<artifactId>
jakarta.ws.rs-api
</artifactId>
<version>
3.1.0
</version>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
jakarta.servlet
</groupId>
<artifactId>
jakarta.servlet-api
</artifactId>
<version>
6.0.0
</version>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
org.junit.jupiter
</groupId>
<artifactId>
junit-jupiter-api
</artifactId>
<version>
${junit.version}
</version>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
org.junit.jupiter
</groupId>
<artifactId>
junit-jupiter-engine
</artifactId>
<version>
${junit.version}
</version>
<scope>
test
</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-war-plugin
</artifactId>
<version>
3.4.0
</version>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
PC27-RestSerwer/src/main/java/pl/alx/kjava/pc27restserwer/HelloApplication.java
0 → 100644
View file @
f221ff92
package
pl
.
alx
.
kjava
.
pc27restserwer
;
import
jakarta.ws.rs.ApplicationPath
;
import
jakarta.ws.rs.core.Application
;
@ApplicationPath
(
"/api"
)
public
class
HelloApplication
extends
Application
{
}
\ No newline at end of file
PC27-RestSerwer/src/main/java/pl/alx/kjava/pc27restserwer/HelloResource.java
0 → 100644
View file @
f221ff92
package
pl
.
alx
.
kjava
.
pc27restserwer
;
import
jakarta.ws.rs.GET
;
import
jakarta.ws.rs.Path
;
import
jakarta.ws.rs.Produces
;
@Path
(
"/hello-world"
)
public
class
HelloResource
{
@GET
@Produces
(
"text/plain"
)
public
String
hello
()
{
return
"Hello, World!"
;
}
}
\ No newline at end of file
PC27-RestSerwer/src/main/resources/META-INF/beans.xml
0 → 100644
View file @
f221ff92
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns=
"https://jakarta.ee/xml/ns/jakartaee"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/beans_4_0.xsd"
>
</beans>
\ 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