File tree Expand file tree Collapse file tree 3 files changed +45
-0
lines changed
src/main/java/com/dianpoint/summer/web Expand file tree Collapse file tree 3 files changed +45
-0
lines changed Original file line number Diff line number Diff line change 1313 <maven .compiler.target>8</maven .compiler.target>
1414 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
1515 <fasterxml .jackson.version>2.14.2</fasterxml .jackson.version>
16+ <servlet-api .version>2.5</servlet-api .version>
1617 </properties >
1718
1819 <dependencies >
4748 <artifactId >jackson-datatype-jsr310</artifactId >
4849 <version >${fasterxml.jackson.version} </version >
4950 </dependency >
51+ <!-- https://mvnrepository.com/artifact/javax.servlet/servlet-api -->
52+ <dependency >
53+ <groupId >javax.servlet</groupId >
54+ <artifactId >servlet-api</artifactId >
55+ <version >${servlet-api.version} </version >
56+ <scope >provided</scope >
57+ </dependency >
58+
5059
5160
5261 <!-- test-->
Original file line number Diff line number Diff line change 1+ package com .dianpoint .summer .web ;
2+
3+ import javax .servlet .ServletConfig ;
4+ import javax .servlet .ServletException ;
5+ import javax .servlet .http .HttpServlet ;
6+
7+ /**
8+ * @author: github/ccoderJava
9+ * @email: congccoder@gmail.com
10+ * @date: 2023/4/4 21:17
11+ */
12+ public class DispatcherServlet extends HttpServlet {
13+
14+ @ Override
15+ public void init (ServletConfig config ) throws ServletException {
16+ super .init (config );
17+ }
18+ }
Original file line number Diff line number Diff line change 1+ package com .dianpoint .summer .web ;
2+
3+ import java .lang .annotation .ElementType ;
4+ import java .lang .annotation .Retention ;
5+ import java .lang .annotation .RetentionPolicy ;
6+ import java .lang .annotation .Target ;
7+
8+ /**
9+ * @author: github/ccoderJava
10+ * @email: congccoder@gmail.com
11+ * @date: 2023/4/5 9:44
12+ */
13+ @ Target (value = ElementType .METHOD )
14+ @ Retention (RetentionPolicy .RUNTIME )
15+ public @interface RequestMapping {
16+
17+ String value () default "" ;
18+ }
You can’t perform that action at this time.
0 commit comments