publish 0.0.13

This commit is contained in:
曾文豪
2023-01-10 14:30:21 +08:00
parent 6281cd3682
commit 22bd0b05df
16 changed files with 46 additions and 58 deletions

View File

@@ -6,7 +6,7 @@
<parent>
<groupId>com.tiesheng</groupId>
<artifactId>tiesheng-parent</artifactId>
<version>0.0.12</version>
<version>0.0.13</version>
</parent>
<artifactId>tiesheng-ademo</artifactId>

View File

@@ -2,6 +2,7 @@ package com.tiesheng.demo;
import com.tiesheng.core.EnableTieshengWeb;
import com.tiesheng.demo.config.DemoWebConfigurer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;
@@ -11,7 +12,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
*/
@EnableTransactionManagement
@SpringBootApplication
@EnableTieshengWeb
@EnableTieshengWeb(webConfigurer = DemoWebConfigurer.class)
public class DemoApplication {
public static void main(String[] args) {

View File

@@ -0,0 +1,19 @@
package com.tiesheng.demo.config;
import com.tiesheng.core.pojos.CurrentWebUser;
import com.tiesheng.core.service.TieshengWebConfigurer;
import org.springframework.stereotype.Component;
@Component
public class DemoWebConfigurer implements TieshengWebConfigurer {
@Override
public CurrentWebUser getCurrentUserName(String userId) {
return null;
}
@Override
public LoginConfigurer loginConfigurer() {
return null;
}
}