code
stringlengths
1
1.05M
repo_name
stringlengths
7
65
path
stringlengths
2
255
language
stringclasses
236 values
license
stringclasses
24 values
size
int64
1
1.05M
package com.redis.cluster.config; import org.springframework.stereotype.Component; import redis.clients.jedis.Jedis; import redis.clients.jedis.JedisSentinelPool; import javax.annotation.Resource; @Component public class RedisLock { private static String keyPrefix = "RedisLock:"; @Resource private JedisSe...
vincentjava/middle-ware-parent
ware-redis-cluster/src/main/java/com/redis/cluster/config/RedisLock.java
Java
unknown
1,348
package com.redis.cluster.config; import org.springframework.boot.context.properties.ConfigurationProperties; @ConfigurationProperties(prefix = "spring.redis.sentinel") public class RedisParam { private String nodes ; private String master ; private Integer maxTotal ; private Integer minIdle ; pr...
vincentjava/middle-ware-parent
ware-redis-cluster/src/main/java/com/redis/cluster/config/RedisParam.java
Java
unknown
2,102
package com.redis.cluster.config; import com.redis.cluster.listen.RedisListener; import com.redis.cluster.utils.SpringUtil; import org.apache.commons.pool2.impl.GenericObjectPoolConfig; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.context.annotation.Bean;...
vincentjava/middle-ware-parent
ware-redis-cluster/src/main/java/com/redis/cluster/config/RedisPool.java
Java
unknown
1,742
package com.redis.cluster.controller; import java.util.Date; public class MsgBody { private String name ; private String desc ; private Date createTime ; public String getName() { return name; } public void setName(String name) { this.name = name; } public String ...
vincentjava/middle-ware-parent
ware-redis-cluster/src/main/java/com/redis/cluster/controller/MsgBody.java
Java
unknown
595
package com.redis.cluster.controller; import com.alibaba.fastjson.JSONObject; import com.redis.cluster.service.RedisService; import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; impo...
vincentjava/middle-ware-parent
ware-redis-cluster/src/main/java/com/redis/cluster/controller/RedisController.java
Java
unknown
1,432
package com.redis.cluster.listen; import com.redis.cluster.config.RedisLock; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import javax.annotation.Resource; @Component public class LogAListen implements RedisHandler { private static final Logger LOG = L...
vincentjava/middle-ware-parent
ware-redis-cluster/src/main/java/com/redis/cluster/listen/LogAListen.java
Java
unknown
1,069
package com.redis.cluster.listen; public interface RedisHandler { /** * 队列名称 */ String queueName(); /** * 队列消息内容 */ String consume (String msgBody); }
vincentjava/middle-ware-parent
ware-redis-cluster/src/main/java/com/redis/cluster/listen/RedisHandler.java
Java
unknown
210
package com.redis.cluster.listen; import com.redis.cluster.utils.SpringUtil; import org.springframework.beans.factory.InitializingBean; import redis.clients.jedis.Jedis; import redis.clients.jedis.JedisSentinelPool; import javax.annotation.Resource; import java.util.List; import java.util.concurrent.ExecutorService; i...
vincentjava/middle-ware-parent
ware-redis-cluster/src/main/java/com/redis/cluster/listen/RedisListener.java
Java
unknown
1,991
package com.redis.cluster.service; public interface RedisService { void saveQueue (String queueKey ,String msgBody) ; }
vincentjava/middle-ware-parent
ware-redis-cluster/src/main/java/com/redis/cluster/service/RedisService.java
Java
unknown
125
package com.redis.cluster.service.impl; import com.redis.cluster.service.RedisService; import org.springframework.stereotype.Service; import redis.clients.jedis.Jedis; import redis.clients.jedis.JedisSentinelPool; import javax.annotation.Resource; @Service public class RedisServiceImpl implements RedisService { ...
vincentjava/middle-ware-parent
ware-redis-cluster/src/main/java/com/redis/cluster/service/impl/RedisServiceImpl.java
Java
unknown
740
package com.redis.cluster.utils; import org.springframework.beans.BeansException; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; import java.util.ArrayList; import java.util.List; import java.util.Map; public class SpringUtil implements ApplicationC...
vincentjava/middle-ware-parent
ware-redis-cluster/src/main/java/com/redis/cluster/utils/SpringUtil.java
Java
unknown
986
package com.rocket.queue; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class RocketApplication { public static void main(String[] args) { SpringApplication.run(RocketApplication.class, args); } }
vincentjava/middle-ware-parent
ware-rocket-queue/src/main/java/com/rocket/queue/RocketApplication.java
Java
unknown
319
package com.rocket.queue.controller; import com.rocket.queue.service.FeePlatMqService; import org.apache.rocketmq.client.producer.SendResult; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; @RestController ...
vincentjava/middle-ware-parent
ware-rocket-queue/src/main/java/com/rocket/queue/controller/RocketController.java
Java
unknown
750
package com.rocket.queue.rocket; import org.apache.rocketmq.client.consumer.DefaultMQPushConsumer; import org.apache.rocketmq.client.exception.MQClientException; import org.apache.rocketmq.common.consumer.ConsumeFromWhere; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factor...
vincentjava/middle-ware-parent
ware-rocket-queue/src/main/java/com/rocket/queue/rocket/ConsumerConfig.java
Java
unknown
2,125
package com.rocket.queue.rocket; import org.apache.rocketmq.client.exception.MQClientException; import org.apache.rocketmq.client.producer.DefaultMQProducer; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation...
vincentjava/middle-ware-parent
ware-rocket-queue/src/main/java/com/rocket/queue/rocket/ProducerConfig.java
Java
unknown
1,914
package com.rocket.queue.rocket; import com.rocket.queue.service.impl.ParamConfigService; import org.apache.rocketmq.client.consumer.listener.ConsumeConcurrentlyContext; import org.apache.rocketmq.client.consumer.listener.ConsumeConcurrentlyStatus; import org.apache.rocketmq.client.consumer.listener.MessageListenerCon...
vincentjava/middle-ware-parent
ware-rocket-queue/src/main/java/com/rocket/queue/rocket/RocketMsgListener.java
Java
unknown
1,976
package com.rocket.queue.service; import org.apache.rocketmq.client.producer.SendResult; public interface FeePlatMqService { SendResult openAccountMsg (String msgInfo) ; }
vincentjava/middle-ware-parent
ware-rocket-queue/src/main/java/com/rocket/queue/service/FeePlatMqService.java
Java
unknown
178
package com.rocket.queue.service.impl; import com.rocket.queue.service.FeePlatMqService; import org.apache.rocketmq.client.producer.DefaultMQProducer; import org.apache.rocketmq.client.producer.SendResult; import org.apache.rocketmq.common.message.Message; import org.springframework.stereotype.Service; import javax.an...
vincentjava/middle-ware-parent
ware-rocket-queue/src/main/java/com/rocket/queue/service/impl/FeePlatMqServiceImpl.java
Java
unknown
1,189
package com.rocket.queue.service.impl; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; @Service public class ParamConfigService { @Value("${fee-plat.fee-plat-group}") public String feePlatGroup ; @Value("${fee-plat.fee-plat-topic}") public Strin...
vincentjava/middle-ware-parent
ware-rocket-queue/src/main/java/com/rocket/queue/service/impl/ParamConfigService.java
Java
unknown
415
package com.security.auth; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; @EnableWebSecurity @SpringBootApplication public class SecurityApplication { ...
vincentjava/middle-ware-parent
ware-security-auth/src/main/java/com/security/auth/SecurityApplication.java
Java
unknown
434
package com.security.auth.config; import com.alibaba.druid.pool.DruidDataSource; import com.alibaba.druid.support.http.StatViewServlet; import com.alibaba.druid.support.http.WebStatFilter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Value; import org.spr...
vincentjava/middle-ware-parent
ware-security-auth/src/main/java/com/security/auth/config/DruidConfig.java
Java
unknown
5,148
package com.security.auth.config; import org.springframework.context.annotation.Bean; import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.an...
vincentjava/middle-ware-parent
ware-security-auth/src/main/java/com/security/auth/config/SecurityConfig.java
Java
unknown
2,459
package com.security.auth.config; import com.security.auth.mapper.UserRoleMapper; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.authority.SimpleGrantedAuthority; import org.springframework.security.core.userdetails.User; import org.springframework.security.core.use...
vincentjava/middle-ware-parent
ware-security-auth/src/main/java/com/security/auth/config/UserDetailServiceImpl.java
Java
unknown
1,921
package com.security.auth.controller; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; @Controller public class PageController {...
vincentjava/middle-ware-parent
ware-security-auth/src/main/java/com/security/auth/controller/PageController.java
Java
unknown
1,300
package com.security.auth.entity; public class UserRole { private Integer id ; private String userName ; private String role ; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getUserName() { return userName; ...
vincentjava/middle-ware-parent
ware-security-auth/src/main/java/com/security/auth/entity/UserRole.java
Java
unknown
540
package com.security.auth.mapper; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; @Mapper public interface UserRoleMapper { List<String> selectByUserName (@Param("userName") String userName) ; }
vincentjava/middle-ware-parent
ware-security-auth/src/main/java/com/security/auth/mapper/UserRoleMapper.java
Java
unknown
266
<!DOCTYPE html> <html xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> </head> <body> <h1 align="center">Security &nbsp;&nbsp;&nbsp;&nbsp; W...
vincentjava/middle-ware-parent
ware-security-auth/src/main/resources/templates/home.html
HTML
unknown
1,562
<!DOCTYPE html> <html xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8"> <title>Insert title here</title> </head> <body> <h1 align="center">Security &nbsp;&nbsp;&nbsp;&nbsp; Login</h1> <hr> <div align="center"> <form th:action="@{/userLogin}" method="post"> 用户名:<input name="user"/><b...
vincentjava/middle-ware-parent
ware-security-auth/src/main/resources/templates/pages/login.html
HTML
unknown
526
<!DOCTYPE html> <html xmlns:th="http://www.thymeleaf.org"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> </head> <body> <a th:href="@{/}">返回首页</a> <h1>Page1</h1> <p>One1.html</p> </body> </html>
vincentjava/middle-ware-parent
ware-security-auth/src/main/resources/templates/pages/page1/one1.html
HTML
unknown
267
<!DOCTYPE html> <html xmlns:th="http://www.thymeleaf.org"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> </head> <body> <a th:href="@{/}">返回首页</a> <h1>Page1</h1> <p>One2.html</p> </body> </html>
vincentjava/middle-ware-parent
ware-security-auth/src/main/resources/templates/pages/page1/one2.html
HTML
unknown
266
<!DOCTYPE html> <html xmlns:th="http://www.thymeleaf.org"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> </head> <body> <a th:href="@{/}">返回首页</a> <h1>Page1</h1> <p>One3.html</p> </body> </html>
vincentjava/middle-ware-parent
ware-security-auth/src/main/resources/templates/pages/page1/one3.html
HTML
unknown
266
<!DOCTYPE html> <html xmlns:th="http://www.thymeleaf.org"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> </head> <body> <a th:href="@{/}">返回首页</a> <h1>Page2</h1> <p>One1.html</p> </body> </html>
vincentjava/middle-ware-parent
ware-security-auth/src/main/resources/templates/pages/page2/one1.html
HTML
unknown
267
<!DOCTYPE html> <html xmlns:th="http://www.thymeleaf.org"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> </head> <body> <a th:href="@{/}">返回首页</a> <h1>Page2</h1> <p>One2.html</p> </body> </html>
vincentjava/middle-ware-parent
ware-security-auth/src/main/resources/templates/pages/page2/one2.html
HTML
unknown
266
<!DOCTYPE html> <html xmlns:th="http://www.thymeleaf.org"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> </head> <body> <a th:href="@{/}">返回首页</a> <h1>Page3</h1> <p>One3.html</p> </body> </html>
vincentjava/middle-ware-parent
ware-security-auth/src/main/resources/templates/pages/page2/one3.html
HTML
unknown
266
<!DOCTYPE html> <html xmlns:th="http://www.thymeleaf.org"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> </head> <body> <a th:href="@{/}">返回首页</a> <h1>Page3</h1> <p>One1.html</p> </body> </html>
vincentjava/middle-ware-parent
ware-security-auth/src/main/resources/templates/pages/page3/one1.html
HTML
unknown
267
<!DOCTYPE html> <html xmlns:th="http://www.thymeleaf.org"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> </head> <body> <a th:href="@{/}">返回首页</a> <h1>Page3</h1> <p>One2.html</p> </body> </html>
vincentjava/middle-ware-parent
ware-security-auth/src/main/resources/templates/pages/page3/one2.html
HTML
unknown
266
<!DOCTYPE html> <html xmlns:th="http://www.thymeleaf.org"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> </head> <body> <a th:href="@{/}">返回首页</a> <h1>Page3</h1> <p>One3.html</p> </body> </html>
vincentjava/middle-ware-parent
ware-security-auth/src/main/resources/templates/pages/page3/one3.html
HTML
unknown
266
package com.shard.jdbc; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; import org.springframework.transaction.annotat...
vincentjava/middle-ware-parent
ware-shard-jdbc/src/main/java/com/shard/jdbc/ShardJdbcApplication.java
Java
unknown
641
package com.shard.jdbc.config; import com.shard.jdbc.utils.HashUtil; import io.shardingsphere.api.algorithm.sharding.PreciseShardingValue; import io.shardingsphere.api.algorithm.sharding.standard.PreciseShardingAlgorithm; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.Collection; /** * 数据库...
vincentjava/middle-ware-parent
ware-shard-jdbc/src/main/java/com/shard/jdbc/config/DataSourceAlg.java
Java
unknown
781
package com.shard.jdbc.config; import com.alibaba.druid.pool.DruidDataSource; import io.shardingsphere.api.config.rule.ShardingRuleConfiguration; import io.shardingsphere.api.config.rule.TableRuleConfiguration; import io.shardingsphere.api.config.strategy.StandardShardingStrategyConfiguration; import io.shardingsphere...
vincentjava/middle-ware-parent
ware-shard-jdbc/src/main/java/com/shard/jdbc/config/ShardJdbcConfig.java
Java
unknown
12,750
package com.shard.jdbc.config; import com.shard.jdbc.utils.HashUtil; import io.shardingsphere.api.algorithm.sharding.PreciseShardingValue; import io.shardingsphere.api.algorithm.sharding.standard.PreciseShardingAlgorithm; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.Collection; /** * 分表算...
vincentjava/middle-ware-parent
ware-shard-jdbc/src/main/java/com/shard/jdbc/config/TableOneAlg.java
Java
unknown
820
package com.shard.jdbc.config; import com.shard.jdbc.utils.HashUtil; import io.shardingsphere.api.algorithm.sharding.PreciseShardingValue; import io.shardingsphere.api.algorithm.sharding.standard.PreciseShardingAlgorithm; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.Collection; /** * 分表算...
vincentjava/middle-ware-parent
ware-shard-jdbc/src/main/java/com/shard/jdbc/config/TableTwoAlg.java
Java
unknown
820
package com.shard.jdbc.controller; import com.shard.jdbc.entity.TableOne; import com.shard.jdbc.entity.TableTwo; import com.shard.jdbc.service.ShardService; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.an...
vincentjava/middle-ware-parent
ware-shard-jdbc/src/main/java/com/shard/jdbc/controller/ShardController.java
Java
unknown
1,514
package com.shard.jdbc.entity; public class TableOne { private Integer id; private String phone; private String backOne; private String backTwo; private String backThree; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } ...
vincentjava/middle-ware-parent
ware-shard-jdbc/src/main/java/com/shard/jdbc/entity/TableOne.java
Java
unknown
1,037
package com.shard.jdbc.entity; import java.util.ArrayList; import java.util.List; public class TableOneExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public TableOneExample() { oredCriteria = new ArrayList<Criteria>(); } ...
vincentjava/middle-ware-parent
ware-shard-jdbc/src/main/java/com/shard/jdbc/entity/TableOneExample.java
Java
unknown
16,397
package com.shard.jdbc.entity; public class TableThree { private Integer id; private String phone; private String backOne; private String backTwo; private String backThree; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } ...
vincentjava/middle-ware-parent
ware-shard-jdbc/src/main/java/com/shard/jdbc/entity/TableThree.java
Java
unknown
1,039
package com.shard.jdbc.entity; import java.util.ArrayList; import java.util.List; public class TableThreeExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public TableThreeExample() { oredCriteria = new ArrayList<Criteria>(); } ...
vincentjava/middle-ware-parent
ware-shard-jdbc/src/main/java/com/shard/jdbc/entity/TableThreeExample.java
Java
unknown
16,401
package com.shard.jdbc.entity; public class TableTwo { private Integer id; private String phone; private String backOne; private String backTwo; private String backThree; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } ...
vincentjava/middle-ware-parent
ware-shard-jdbc/src/main/java/com/shard/jdbc/entity/TableTwo.java
Java
unknown
1,037
package com.shard.jdbc.entity; import java.util.ArrayList; import java.util.List; public class TableTwoExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public TableTwoExample() { oredCriteria = new ArrayList<Criteria>(); } ...
vincentjava/middle-ware-parent
ware-shard-jdbc/src/main/java/com/shard/jdbc/entity/TableTwoExample.java
Java
unknown
16,397
package com.shard.jdbc.mapper; import com.shard.jdbc.entity.TableOne; import com.shard.jdbc.entity.TableOneExample; import java.util.List; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; @Mapper public interface TableOneMapper { TableOne selectOneByPhone (@Param("phone") ...
vincentjava/middle-ware-parent
ware-shard-jdbc/src/main/java/com/shard/jdbc/mapper/TableOneMapper.java
Java
unknown
980
package com.shard.jdbc.mapper; import com.shard.jdbc.entity.TableThree; import com.shard.jdbc.entity.TableThreeExample; import java.util.List; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; @Mapper public interface TableThreeMapper { int countByExample(TableThreeExample e...
vincentjava/middle-ware-parent
ware-shard-jdbc/src/main/java/com/shard/jdbc/mapper/TableThreeMapper.java
Java
unknown
947
package com.shard.jdbc.mapper; import com.shard.jdbc.entity.TableTwo; import com.shard.jdbc.entity.TableTwoExample; import java.util.List; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; @Mapper public interface TableTwoMapper { TableTwo selectTwoByPhone (@Param("phone") S...
vincentjava/middle-ware-parent
ware-shard-jdbc/src/main/java/com/shard/jdbc/mapper/TableTwoMapper.java
Java
unknown
979
package com.shard.jdbc.service; import com.shard.jdbc.entity.TableOne; import com.shard.jdbc.entity.TableTwo; public interface ShardService { void createTable () ; void insertOne () ; void insertTwo () ; TableOne selectOneByPhone (String phone) ; TableTwo selectTwoByPhone (String phone) ; }
vincentjava/middle-ware-parent
ware-shard-jdbc/src/main/java/com/shard/jdbc/service/ShardService.java
Java
unknown
314
package com.shard.jdbc.service.impl; import com.shard.jdbc.entity.TableOne; import com.shard.jdbc.entity.TableTwo; import com.shard.jdbc.mapper.TableOneMapper; import com.shard.jdbc.mapper.TableTwoMapper; import com.shard.jdbc.service.ShardService; import org.springframework.beans.factory.annotation.Autowired; import ...
vincentjava/middle-ware-parent
ware-shard-jdbc/src/main/java/com/shard/jdbc/service/impl/ShardServiceImpl.java
Java
unknown
2,859
package com.shard.jdbc.utils; public class HashUtil { public static int rsHash(String value) { int one = 378551; int two = 63689; int hash = 0; for (int i = 0; i < value.length(); i++) { hash = hash * two + value.charAt(i); two = two * one; } ...
vincentjava/middle-ware-parent
ware-shard-jdbc/src/main/java/com/shard/jdbc/utils/HashUtil.java
Java
unknown
357
package com.boot.shiro; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class ShiroApplication { public static void main(String[] args) { SpringApplication.run(ShiroApplication.class,args) ; } }
vincentjava/middle-ware-parent
ware-shiro-auth/src/main/java/com/boot/shiro/ShiroApplication.java
Java
unknown
315
package com.boot.shiro.config; import com.alibaba.druid.pool.DruidDataSource; import com.alibaba.druid.support.http.StatViewServlet; import com.alibaba.druid.support.http.WebStatFilter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Value; import org.spring...
vincentjava/middle-ware-parent
ware-shiro-auth/src/main/java/com/boot/shiro/config/DruidConfig.java
Java
unknown
5,144
package com.boot.shiro.config; import org.apache.shiro.mgt.SecurityManager; import org.apache.shiro.session.mgt.SessionManager; import org.apache.shiro.spring.LifecycleBeanPostProcessor; import org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor; import org.apache.shiro.spring.web.ShiroFil...
vincentjava/middle-ware-parent
ware-shiro-auth/src/main/java/com/boot/shiro/config/ShiroConfig.java
Java
unknown
3,565
package com.boot.shiro.config; import org.apache.shiro.authz.AuthorizationException; import org.springframework.web.bind.annotation.ExceptionHandler; import org.springframework.web.bind.annotation.RestControllerAdvice; @RestControllerAdvice public class ShiroException { @ExceptionHandler(AuthorizationException.c...
vincentjava/middle-ware-parent
ware-shiro-auth/src/main/java/com/boot/shiro/config/ShiroException.java
Java
unknown
561
package com.boot.shiro.config; import com.boot.shiro.entity.SysMenuEntity; import com.boot.shiro.entity.SysUserEntity; import com.boot.shiro.mapper.SysMenuMapper; import com.boot.shiro.mapper.SysUserMapper; import com.boot.shiro.util.ShiroUtils; import org.apache.shiro.authc.*; import org.apache.shiro.authc.credential...
vincentjava/middle-ware-parent
ware-shiro-auth/src/main/java/com/boot/shiro/config/UserRealm.java
Java
unknown
3,430
package com.boot.shiro.controller; import com.boot.shiro.config.UserRealm; import com.boot.shiro.mapper.SysMenuMapper; import com.boot.shiro.util.ShiroUtils; import org.apache.shiro.authc.*; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.subject.PrincipalCollection; import org.ap...
vincentjava/middle-ware-parent
ware-shiro-auth/src/main/java/com/boot/shiro/controller/ShiroController.java
Java
unknown
2,244
package com.boot.shiro.entity; import com.baomidou.mybatisplus.annotations.TableField; import com.baomidou.mybatisplus.annotations.TableId; import com.baomidou.mybatisplus.annotations.TableName; import java.io.Serializable; import java.util.List; /** * 菜单管理 */ @TableName("sys_menu") public class SysMenuEntity imple...
vincentjava/middle-ware-parent
ware-shiro-auth/src/main/java/com/boot/shiro/entity/SysMenuEntity.java
Java
unknown
2,418
package com.boot.shiro.entity; import com.baomidou.mybatisplus.annotations.TableField; import com.baomidou.mybatisplus.annotations.TableId; import com.baomidou.mybatisplus.annotations.TableName; import java.io.Serializable; import java.util.Date; import java.util.List; @TableName("sys_user") public class SysUserEntit...
vincentjava/middle-ware-parent
ware-shiro-auth/src/main/java/com/boot/shiro/entity/SysUserEntity.java
Java
unknown
2,417
package com.boot.shiro.mapper; import com.boot.shiro.entity.SysMenuEntity; import org.apache.ibatis.annotations.Mapper; import java.util.List; @Mapper public interface SysMenuMapper { /** * 根据父菜单,查询子菜单 * @param parentId 父菜单ID */ List<SysMenuEntity> queryListParentId(Long parentId); /** ...
vincentjava/middle-ware-parent
ware-shiro-auth/src/main/java/com/boot/shiro/mapper/SysMenuMapper.java
Java
unknown
527
package com.boot.shiro.mapper; import com.boot.shiro.entity.SysUserEntity; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; @Mapper public interface SysUserMapper { /** * 查询用户的所有权限 * @param userId 用户ID */ List<String> queryAllPerms...
vincentjava/middle-ware-parent
ware-shiro-auth/src/main/java/com/boot/shiro/mapper/SysUserMapper.java
Java
unknown
575
package com.boot.shiro.util; import com.boot.shiro.entity.SysUserEntity; import org.apache.shiro.SecurityUtils; import org.apache.shiro.crypto.hash.SimpleHash; import org.apache.shiro.session.Session; import org.apache.shiro.subject.Subject; /** * Shiro工具类 */ public class ShiroUtils { /** 加密算法 */ public fina...
vincentjava/middle-ware-parent
ware-shiro-auth/src/main/java/com/boot/shiro/util/ShiroUtils.java
Java
unknown
1,796
package com.swagger.two; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import springfox.documentation.swagger2.annotations.EnableSwagger2; @EnableSwagger2 @SpringBootApplication public class SwaggerApplication { public static void main(Stri...
vincentjava/middle-ware-parent
ware-swagger-two/src/main/java/com/swagger/two/SwaggerApplication.java
Java
unknown
404
package com.swagger.two.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import springfox.documentation.builders.ApiInfoBuilder; import springfox.documentation.builders.PathSelectors; import springfox.documentation.builders.RequestHandlerSelectors...
vincentjava/middle-ware-parent
ware-swagger-two/src/main/java/com/swagger/two/config/SwaggerConfig.java
Java
unknown
1,231
package com.swagger.two.controller; import com.swagger.two.entity.JsonResult; import com.swagger.two.entity.User; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiOperation; import org.springframework.http.ResponseEntity; import org.sprin...
vincentjava/middle-ware-parent
ware-swagger-two/src/main/java/com/swagger/two/controller/UserController.java
Java
unknown
5,587
package com.swagger.two.entity; public class JsonResult { private String status ; private Object result ; public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } public Object getResult() { return result; } ...
vincentjava/middle-ware-parent
ware-swagger-two/src/main/java/com/swagger/two/entity/JsonResult.java
Java
unknown
397
package com.swagger.two.entity; public class User { private int id; private String username; private int age; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getUsername() { return username; } public void setUse...
vincentjava/middle-ware-parent
ware-swagger-two/src/main/java/com/swagger/two/entity/User.java
Java
unknown
503
# MIT License # # Copyright (c) 2016-2022 The ZLMediaKit project authors. All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitat...
vincent-in-black-sesame/ZLMediaKit
3rdpart/CMakeLists.txt
CMake
bsd
8,504
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
3rdpart/assert.h
C
bsd
839
/* * Copyright (c) 2016 The ZLToolKit project authors. All Rights Reserved. * * This file is part of ZLToolKit(https://github.com/ZLMediaKit/ZLToolKit). * * Use of this source code is governed by MIT license that can be found in the * LICENSE file in the root of the source tree. All contributing project authors ...
vincent-in-black-sesame/ZLMediaKit
3rdpart/wepoll/sys/epoll.cpp
C++
bsd
529
/* * Copyright (c) 2016 The ZLToolKit project authors. All Rights Reserved. * * This file is part of ZLToolKit(https://github.com/ZLMediaKit/ZLToolKit). * * Use of this source code is governed by MIT license that can be found in the * LICENSE file in the root of the source tree. All contributing project authors ...
vincent-in-black-sesame/ZLMediaKit
3rdpart/wepoll/sys/epoll.h
C++
bsd
1,614
/* * wepoll - epoll for Windows * https://github.com/piscisaureus/wepoll * * Copyright 2012-2020, Bert Belder <bertbelder@gmail.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * ...
vincent-in-black-sesame/ZLMediaKit
3rdpart/wepoll/wepoll.c
C
bsd
82,023
/* * wepoll - epoll for Windows * https://github.com/piscisaureus/wepoll * * Copyright 2012-2020, Bert Belder <bertbelder@gmail.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * ...
vincent-in-black-sesame/ZLMediaKit
3rdpart/wepoll/wepoll.h
C
bsd
3,248
package com.zlmediakit.demo; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on an Android dev...
vincent-in-black-sesame/ZLMediaKit
Android/app/src/androidTest/java/com/zlmediakit/demo/ExampleInstrumentedTest.java
Java
bsd
722
project(ZLMediaKit) cmake_minimum_required(VERSION 3.1.3) #使能c++11 set(CMAKE_CXX_STANDARD 11) #设置生成的so动态库最后输出的路径 set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/libs_export/${ANDROID_ABI}) set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/libs_export/${ANDROID_ABI}) set(EXECUTABLE_OUTPUT_PA...
vincent-in-black-sesame/ZLMediaKit
Android/app/src/main/cpp/CMakeLists.txt
CMake
bsd
1,647
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
Android/app/src/main/cpp/native-lib.cpp
C++
bsd
9,413
package com.zlmediakit.demo; import android.content.Intent; import android.content.pm.PackageManager; import android.os.Environment; import android.support.v4.app.ActivityCompat; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.widget.Toast; import com...
vincent-in-black-sesame/ZLMediaKit
Android/app/src/main/java/com/zlmediakit/demo/MainActivity.java
Java
bsd
2,856
package com.zlmediakit.jni; public class ZLMediaKit { static public class MediaFrame{ /** * 返回解码时间戳,单位毫秒 */ public int dts; /** * 返回显示时间戳,单位毫秒 */ public int pts; /** * 前缀长度,譬如264前缀为0x00 00 00 01,那么前缀长度就是4 * aac前缀则为7个字节...
vincent-in-black-sesame/ZLMediaKit
Android/app/src/main/java/com/zlmediakit/jni/ZLMediaKit.java
Java
bsd
2,244
# MIT License # # Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limi...
vincent-in-black-sesame/ZLMediaKit
CMakeLists.txt
CMake
bsd
20,097
# MIT License # # Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without lim...
vincent-in-black-sesame/ZLMediaKit
api/CMakeLists.txt
CMake
bsd
3,990
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
api/include/mk_common.h
C
bsd
10,670
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
api/include/mk_events.h
C
bsd
15,760
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
api/include/mk_events_objects.h
C
bsd
30,723
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
api/include/mk_frame.h
C
bsd
12,814
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
api/include/mk_h264_splitter.h
C
bsd
2,479
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
api/include/mk_httpclient.h
C
bsd
8,730
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
api/include/mk_media.h
C
bsd
19,688
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
api/include/mk_mediakit.h
C
bsd
880
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
api/include/mk_player.h
C
bsd
7,004
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
api/include/mk_proxyplayer.h
C
bsd
8,196
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
api/include/mk_pusher.h
C
bsd
5,412
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
api/include/mk_recorder.h
C
bsd
5,384
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
api/include/mk_rtp_server.h
C
bsd
5,361
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
api/include/mk_tcp.h
C
bsd
15,564
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
api/include/mk_thread.h
C
bsd
8,438
/* * Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/ZLMediaKit/ZLMediaKit). * * Use of this source code is governed by MIT-like license that can be found in the * LICENSE file in the root of the source tree. All contributing ...
vincent-in-black-sesame/ZLMediaKit
api/include/mk_track.h
C
bsd
6,115