Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
java_weekendowa_20221008
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
java_weekendowa_20221008
Commits
63ae3cef
Commit
63ae3cef
authored
Oct 09, 2022
by
Patryk Czarnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Projekt Serwlety - pierwszy przykład
parent
621396f6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
94 additions
and
0 deletions
+94
-0
.gitignore
PC23-Serwlety/.gitignore
+8
-0
notatki.txt
PC23-Serwlety/notatki.txt
+23
-0
pom.xml
PC23-Serwlety/pom.xml
+38
-0
Hello.java
PC23-Serwlety/src/main/java/podstawy/Hello.java
+25
-0
No files found.
PC23-Serwlety/.gitignore
0 → 100644
View file @
63ae3cef
/target/
/.settings/
/.classpath
/.project
/*.iml
/.idea/
PC23-Serwlety/notatki.txt
0 → 100644
View file @
63ae3cef
Java EE - zestaw technologii , które działają na "serwerze aplikacji".
Serwer aplikacji - taki program, który można sobie uruchomić na swoim komputerze, albo na zdalnym hoście widocznym w internecie.
Istniejące serwery aplikacji Java EE:
darmowe:
Glassfish (kiedyś Sun, Oracle, a obecnie Fundacje Eclipse)
WildFly (darmowa wersja JBoss)
płatne:
WebLogic (Oracle)
WebShpere (IBM - ale to już raczej przeszłość)
JBoss (RedHat)
https://www.wildfly.org/downloads/
https://github.com/wildfly/wildfly/releases/download/26.1.2.Final/wildfly-26.1.2.Final.zip
Java 2 Standard Edition- version 1.4.3
Java 2 Enterprise Edition v. sklfds
J2EE
http://localhost:8080
PC23-Serwlety/pom.xml
0 → 100644
View file @
63ae3cef
<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>
PC23-Serwlety
</artifactId>
<version>
1.0
</version>
<packaging>
war
</packaging>
<properties>
<maven.compiler.source>
17
</maven.compiler.source>
<maven.compiler.target>
17
</maven.compiler.target>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
<build>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-war-plugin
</artifactId>
<version>
3.3.2
</version>
<configuration>
<failOnMissingWebXml>
false
</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>
javax
</groupId>
<artifactId>
javaee-web-api
</artifactId>
<version>
8.0.1
</version>
</dependency>
</dependencies>
</project>
<!-- Za pomocą Alt+F5 wykonujemy Maven > Update Project,
aby Eclipse uaktualił konfigurację projektu zgodnie z plikiem POM.
-->
PC23-Serwlety/src/main/java/podstawy/Hello.java
0 → 100644
View file @
63ae3cef
package
podstawy
;
import
java.io.IOException
;
import
javax.servlet.ServletException
;
import
javax.servlet.annotation.WebServlet
;
import
javax.servlet.http.HttpServlet
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
/**
* Servlet implementation class Hello
*/
@WebServlet
(
"/Hello"
)
public
class
Hello
extends
HttpServlet
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
*/
protected
void
doGet
(
HttpServletRequest
request
,
HttpServletResponse
response
)
throws
ServletException
,
IOException
{
// TODO Auto-generated method stub
response
.
getWriter
().
append
(
"Hejka! Served at: "
).
append
(
request
.
getContextPath
());
}
}
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