mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
samples: upgrade servlet API dependency to work with modern servlet containers
This commit is contained in:
parent
fcbcc30b21
commit
630fae3093
|
@ -22,7 +22,7 @@ plugins {
|
|||
|
||||
dependencies {
|
||||
teavm(teavm.libs.jsoApis)
|
||||
compileOnly("javax.servlet:javax.servlet-api:3.0.1")
|
||||
compileOnly("jakarta.servlet:jakarta.servlet-api:6.0.0")
|
||||
}
|
||||
|
||||
teavm.js {
|
||||
|
|
|
@ -15,11 +15,11 @@
|
|||
*/
|
||||
package org.teavm.samples.hello;
|
||||
|
||||
import jakarta.servlet.annotation.WebServlet;
|
||||
import jakarta.servlet.http.HttpServlet;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import java.io.IOException;
|
||||
import javax.servlet.annotation.WebServlet;
|
||||
import javax.servlet.http.HttpServlet;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
@WebServlet("/hello")
|
||||
public class Server extends HttpServlet {
|
||||
|
|
Loading…
Reference in New Issue
Block a user