-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from shenjingwaa/feature/proxy
添加代理注解
- Loading branch information
Showing
12 changed files
with
189 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,24 +10,25 @@ | |
<name>relax-spring-boot-starter</name> | ||
<description> | ||
A Rapid Development Tool Based on Springboot. | ||
Single table addition, deletion, modification, and querying can be quickly achieved through annotations, as well as entity reverse parsing into tables. | ||
Single table addition, deletion, modification, and querying can be quickly achieved through annotations, as well | ||
as entity reverse parsing into tables. | ||
</description> | ||
<url>https://github.com/shenjingwaa/relax</url> | ||
|
||
<!-- <developers>--> | ||
<!-- <developer>--> | ||
<!-- <name>haifeng-yan</name>--> | ||
<!-- <email>[email protected]</email>--> | ||
<!-- <timezone>+8</timezone>--> | ||
<!-- </developer>--> | ||
<developers> | ||
<developer> | ||
<name>haifeng-yan</name> | ||
<email>[email protected]</email> | ||
<timezone>+8</timezone> | ||
</developer> | ||
|
||
<!-- <developer>--> | ||
<!-- <name>shenjingwa</name>--> | ||
<!-- <email>[email protected]</email>--> | ||
<!-- <organization>https://github.com/shenjingwaa/</organization>--> | ||
<!-- <timezone>+8</timezone>--> | ||
<!-- </developer>--> | ||
<!-- </developers>--> | ||
<developer> | ||
<name>shenjingwa</name> | ||
<email>[email protected]</email> | ||
<organization>https://github.com/shenjingwaa/</organization> | ||
<timezone>+8</timezone> | ||
</developer> | ||
</developers> | ||
|
||
|
||
<properties> | ||
|
@@ -104,135 +105,134 @@ | |
|
||
</dependencies> | ||
|
||
<!-- <build>--> | ||
<!--<!– <pluginManagement>–>--> | ||
<!-- <plugins>--> | ||
<!-- <plugin>--> | ||
<!-- <groupId>org.springframework.boot</groupId>--> | ||
<!-- <artifactId>spring-boot-maven-plugin</artifactId>--> | ||
<!-- <configuration>--> | ||
<!-- <excludes>--> | ||
<!-- <exclude>--> | ||
<!-- <groupId>org.projectlombok</groupId>--> | ||
<!-- <artifactId>lombok</artifactId>--> | ||
<!-- </exclude>--> | ||
<!-- </excludes>--> | ||
<!-- </configuration>--> | ||
<!-- </plugin>--> | ||
|
||
|
||
<!-- <plugin>--> | ||
<!-- <groupId>org.apache.maven.plugins</groupId>--> | ||
<!-- <artifactId>maven-compiler-plugin</artifactId>--> | ||
<!-- <version>3.8.1</version>--> | ||
<!-- <configuration>--> | ||
<!-- <source>${java.version}</source>--> | ||
<!-- <target>${java.version}</target>--> | ||
<!-- <encoding>UTF-8</encoding>--> | ||
<!-- </configuration>--> | ||
<!-- </plugin>--> | ||
<!-- <!– sonatype插件,发布使用–>--> | ||
<!-- <plugin>--> | ||
<!-- <groupId>org.sonatype.plugins</groupId>--> | ||
<!-- <artifactId>nexus-staging-maven-plugin</artifactId>--> | ||
<!-- <version>1.6.7</version>--> | ||
<!-- <extensions>true</extensions>--> | ||
<!-- <configuration>--> | ||
<!-- <serverId>ossrh</serverId>--> | ||
<!-- <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>--> | ||
<!-- <autoReleaseAfterClose>true</autoReleaseAfterClose>--> | ||
<!-- </configuration>--> | ||
<!-- </plugin>--> | ||
|
||
<!-- <!– 生成java source.jar –>--> | ||
<!-- <plugin>--> | ||
<!-- <groupId>org.apache.maven.plugins</groupId>--> | ||
<!-- <artifactId>maven-source-plugin</artifactId>--> | ||
<!-- <version>2.2.1</version>--> | ||
<!-- <executions>--> | ||
<!-- <execution>--> | ||
<!-- <id>attach-sources</id>--> | ||
<!-- <goals>--> | ||
<!-- <goal>jar-no-fork</goal>--> | ||
<!-- </goals>--> | ||
<!-- </execution>--> | ||
<!-- </executions>--> | ||
<!-- </plugin>--> | ||
|
||
<!-- <!– 生成java doc文档 –>--> | ||
<!-- <plugin>--> | ||
<!-- <groupId>org.apache.maven.plugins</groupId>--> | ||
<!-- <artifactId>maven-javadoc-plugin</artifactId>--> | ||
<!-- <version>2.9.1</version>--> | ||
<!-- <configuration>--> | ||
<!-- <show>private</show>--> | ||
<!-- <nohelp>true</nohelp>--> | ||
<!-- <charset>UTF-8</charset>--> | ||
<!-- <encoding>UTF-8</encoding>--> | ||
<!-- <docencoding>UTF-8</docencoding>--> | ||
<!-- <additionalparam>-Xdoclint:none</additionalparam>--> | ||
<!-- </configuration>--> | ||
<!-- <executions>--> | ||
<!-- <execution>--> | ||
<!-- <phase>package</phase>--> | ||
<!-- <goals>--> | ||
<!-- <goal>jar</goal>--> | ||
<!-- </goals>--> | ||
<!-- </execution>--> | ||
<!-- </executions>--> | ||
<!-- </plugin>--> | ||
|
||
<!-- <!– 工程文件自动签名–>--> | ||
<!-- <plugin>--> | ||
<!-- <groupId>org.apache.maven.plugins</groupId>--> | ||
<!-- <artifactId>maven-gpg-plugin</artifactId>--> | ||
<!-- <version>1.5</version>--> | ||
<!-- <executions>--> | ||
<!-- <execution>--> | ||
<!-- <id>sign-artifacts</id>--> | ||
<!-- <phase>verify</phase>--> | ||
<!-- <goals>--> | ||
<!-- <goal>sign</goal>--> | ||
<!-- </goals>--> | ||
<!-- </execution>--> | ||
<!-- </executions>--> | ||
<!-- </plugin>--> | ||
|
||
<!-- <plugin>--> | ||
<!-- <groupId>org.apache.maven.plugins</groupId>--> | ||
<!-- <artifactId>maven-deploy-plugin</artifactId>--> | ||
<!-- <version>2.8.2</version>--> | ||
<!-- </plugin>--> | ||
<!-- </plugins>--> | ||
|
||
<!--<!– </pluginManagement>–>--> | ||
<!-- </build>--> | ||
|
||
<!-- <distributionManagement>--> | ||
<!-- <snapshotRepository>--> | ||
<!-- <id>ossrh</id>--> | ||
<!-- <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>--> | ||
<!-- </snapshotRepository>--> | ||
<!-- <repository>--> | ||
<!-- <id>ossrh</id>--> | ||
<!-- <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>--> | ||
<!-- </repository>--> | ||
<!-- </distributionManagement>--> | ||
|
||
|
||
<!-- <licenses>--> | ||
<!-- <license>--> | ||
<!-- <name>The Apache Software License, Version 2.0</name>--> | ||
<!-- <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>--> | ||
<!-- <distribution>repo</distribution>--> | ||
<!-- </license>--> | ||
<!-- </licenses>--> | ||
|
||
<!-- <scm>--> | ||
<!-- <url>https://github.com/shenjingwaa/relax</url>--> | ||
<!-- <connection>scm:[email protected]/shenjingwaa/relax.git</connection>--> | ||
<!-- <developerConnection>scm:[email protected]/shenjingwaa/relax.git</developerConnection>--> | ||
<!-- </scm>--> | ||
<build> | ||
<pluginManagement> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-maven-plugin</artifactId> | ||
<configuration> | ||
<excludes> | ||
<exclude> | ||
<groupId>org.projectlombok</groupId> | ||
<artifactId>lombok</artifactId> | ||
</exclude> | ||
</excludes> | ||
</configuration> | ||
</plugin> | ||
|
||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.8.1</version> | ||
<configuration> | ||
<source>${java.version}</source> | ||
<target>${java.version}</target> | ||
<encoding>UTF-8</encoding> | ||
</configuration> | ||
</plugin> | ||
<!-- sonatype插件,发布使用--> | ||
<plugin> | ||
<groupId>org.sonatype.plugins</groupId> | ||
<artifactId>nexus-staging-maven-plugin</artifactId> | ||
<version>1.6.7</version> | ||
<extensions>true</extensions> | ||
<configuration> | ||
<serverId>ossrh</serverId> | ||
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> | ||
<autoReleaseAfterClose>true</autoReleaseAfterClose> | ||
</configuration> | ||
</plugin> | ||
|
||
<!-- 生成java source.jar --> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-source-plugin</artifactId> | ||
<version>2.2.1</version> | ||
<executions> | ||
<execution> | ||
<id>attach-sources</id> | ||
<goals> | ||
<goal>jar-no-fork</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
|
||
<!-- 生成java doc文档 --> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-javadoc-plugin</artifactId> | ||
<version>2.9.1</version> | ||
<configuration> | ||
<show>private</show> | ||
<nohelp>true</nohelp> | ||
<charset>UTF-8</charset> | ||
<encoding>UTF-8</encoding> | ||
<docencoding>UTF-8</docencoding> | ||
<additionalparam>-Xdoclint:none</additionalparam> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>jar</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
|
||
<!-- 工程文件自动签名--> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-gpg-plugin</artifactId> | ||
<version>1.5</version> | ||
<executions> | ||
<execution> | ||
<id>sign-artifacts</id> | ||
<phase>verify</phase> | ||
<goals> | ||
<goal>sign</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-deploy-plugin</artifactId> | ||
<version>2.8.2</version> | ||
</plugin> | ||
</plugins> | ||
</pluginManagement> | ||
</build> | ||
|
||
<distributionManagement> | ||
<snapshotRepository> | ||
<id>ossrh</id> | ||
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> | ||
</snapshotRepository> | ||
<repository> | ||
<id>ossrh</id> | ||
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url> | ||
</repository> | ||
</distributionManagement> | ||
|
||
|
||
<licenses> | ||
<license> | ||
<name>The Apache Software License, Version 2.0</name> | ||
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> | ||
<distribution>repo</distribution> | ||
</license> | ||
</licenses> | ||
|
||
<scm> | ||
<url>https://github.com/shenjingwaa/relax</url> | ||
<connection>scm:[email protected]/shenjingwaa/relax.git</connection> | ||
<developerConnection>scm:[email protected]/shenjingwaa/relax.git</developerConnection> | ||
</scm> | ||
|
||
|
||
</project> |
19 changes: 19 additions & 0 deletions
19
src/main/java/com/relax/relax/common/annotation/RelaxProxy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.relax.relax.common.annotation; | ||
|
||
import com.relax.relax.common.enums.ProxyType; | ||
import com.relax.relax.common.proxy.RelaxViewProxy; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Target(ElementType.TYPE) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface RelaxProxy { | ||
Class<?> relaxClass(); | ||
|
||
Class<? extends RelaxViewProxy> afterClass() default RelaxViewProxy.class; | ||
|
||
ProxyType proxyType(); | ||
} |
11 changes: 0 additions & 11 deletions
11
src/main/java/com/relax/relax/common/controller/BaseController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.