commit
24bd4fcf6a
11 changed files with 132 additions and 0 deletions
@ -0,0 +1,29 @@ |
|||||
|
### IntelliJ IDEA ### |
||||
|
out/ |
||||
|
!**/src/main/**/out/ |
||||
|
!**/src/test/**/out/ |
||||
|
|
||||
|
### Eclipse ### |
||||
|
.apt_generated |
||||
|
.classpath |
||||
|
.factorypath |
||||
|
.project |
||||
|
.settings |
||||
|
.springBeans |
||||
|
.sts4-cache |
||||
|
bin/ |
||||
|
!**/src/main/**/bin/ |
||||
|
!**/src/test/**/bin/ |
||||
|
|
||||
|
### NetBeans ### |
||||
|
/nbproject/private/ |
||||
|
/nbbuild/ |
||||
|
/dist/ |
||||
|
/nbdist/ |
||||
|
/.nb-gradle/ |
||||
|
|
||||
|
### VS Code ### |
||||
|
.vscode/ |
||||
|
|
||||
|
### Mac OS ### |
||||
|
.DS_Store |
||||
@ -0,0 +1,3 @@ |
|||||
|
# 默认忽略的文件 |
||||
|
/shelf/ |
||||
|
/workspace.xml |
||||
@ -0,0 +1,8 @@ |
|||||
|
<component name="ArtifactManager"> |
||||
|
<artifact name="unnamed"> |
||||
|
<output-path>$PROJECT_DIR$/out/artifacts/unnamed</output-path> |
||||
|
<root id="root"> |
||||
|
<element id="dir-copy" path="$PROJECT_DIR$/src/main/webapp" /> |
||||
|
</root> |
||||
|
</artifact> |
||||
|
</component> |
||||
@ -0,0 +1,9 @@ |
|||||
|
<component name="libraryTable"> |
||||
|
<library name="javax.servlet-api-4.0.1-javadoc"> |
||||
|
<CLASSES /> |
||||
|
<JAVADOC> |
||||
|
<root url="jar://$PROJECT_DIR$/../../Servlet/javax.servlet-api-4.0.1-javadoc.jar!/" /> |
||||
|
</JAVADOC> |
||||
|
<SOURCES /> |
||||
|
</library> |
||||
|
</component> |
||||
@ -0,0 +1,6 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<project version="4"> |
||||
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_X" default="true" project-jdk-name="openjdk-24" project-jdk-type="JavaSDK"> |
||||
|
<output url="file://$PROJECT_DIR$/out" /> |
||||
|
</component> |
||||
|
</project> |
||||
@ -0,0 +1,8 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<project version="4"> |
||||
|
<component name="ProjectModuleManager"> |
||||
|
<modules> |
||||
|
<module fileurl="file://$PROJECT_DIR$/Web.iml" filepath="$PROJECT_DIR$/Web.iml" /> |
||||
|
</modules> |
||||
|
</component> |
||||
|
</project> |
||||
@ -0,0 +1,6 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<project version="4"> |
||||
|
<component name="VcsDirectoryMappings"> |
||||
|
<mapping directory="$PROJECT_DIR$" vcs="Git" /> |
||||
|
</component> |
||||
|
</project> |
||||
@ -0,0 +1,18 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<module type="JAVA_MODULE" version="4"> |
||||
|
<component name="NewModuleRootManager"> |
||||
|
<output url="file://$MODULE_DIR$/out/production/Web" /> |
||||
|
<output-test url="file://$MODULE_DIR$/out/test/Web" /> |
||||
|
<exclude-output /> |
||||
|
<content url="file://$MODULE_DIR$"> |
||||
|
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" /> |
||||
|
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" /> |
||||
|
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" /> |
||||
|
<sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" /> |
||||
|
<excludeFolder url="file://$MODULE_DIR$/src/main/webapp/WEB-INF/classes" /> |
||||
|
</content> |
||||
|
<orderEntry type="inheritedJdk" /> |
||||
|
<orderEntry type="sourceFolder" forTests="false" /> |
||||
|
<orderEntry type="library" exported="" name="javax.servlet-api-4.0.1-javadoc" level="project" /> |
||||
|
</component> |
||||
|
</module> |
||||
@ -0,0 +1,9 @@ |
|||||
|
FROM tomcat:9-jdk24-openjdk |
||||
|
|
||||
|
# 第二步:将本地webapp目录复制到容器内的Tomcat默认应用目录 |
||||
|
# 注意:`src/main/webapp` 是你项目中Web资源的路径(需与实际一致) |
||||
|
# `/usr/local/tomcat/webapps/ROOT` 表示将项目作为Tomcat的“根应用”(访问时无需加项目名) |
||||
|
COPY src/main/webapp /usr/local/tomcat/webapps/ROOT |
||||
|
|
||||
|
# 第三步:暴露Tomcat默认端口(容器内部端口) |
||||
|
EXPOSE 8080 |
||||
@ -0,0 +1,15 @@ |
|||||
|
<web-app id="WebApp_ID" version="4.0" |
||||
|
xmlns="http://xmlns.jcp.org/xml/ns/javaee" |
||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
|
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee |
||||
|
http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"> |
||||
|
<display-name>xss</display-name> |
||||
|
<welcome-file-list> |
||||
|
<welcome-file>index.html</welcome-file> |
||||
|
<welcome-file>index.htm</welcome-file> |
||||
|
<welcome-file>index.jsp</welcome-file> |
||||
|
<welcome-file>default.html</welcome-file> |
||||
|
<welcome-file>default.htm</welcome-file> |
||||
|
<welcome-file>default.jsp</welcome-file> |
||||
|
</welcome-file-list> |
||||
|
</web-app> |
||||
@ -0,0 +1,21 @@ |
|||||
|
<!DOCTYPE html> |
||||
|
<html lang="en"> |
||||
|
<head> |
||||
|
<meta charset="UTF-8"> |
||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
||||
|
<title>Document</title> |
||||
|
</head> |
||||
|
<body> |
||||
|
<h1>冬夜读书示子堇</h1> |
||||
|
<hr> |
||||
|
<h2>[宋] 陆游</h2> |
||||
|
<p> |
||||
|
<font size="4.7"><strong>古人学问无一例</strong></font> |
||||
|
<br> |
||||
|
<font size="4.5"><em>少壮工夫老式成</font></em> |
||||
|
<br> |
||||
|
<font size="4.5"><del>纸上得来终觉浅</font></del> |
||||
|
<br><font size="4.5"><ins>绝知此事要躬行</font></ins> |
||||
|
</p> |
||||
|
</body> |
||||
|
</html> |
||||
Loading…
Reference in new issue