开始使用 XWiki 吧

docker pull xwiki 注意新建一个 database ,字符集用: --character-set-server=utf8 --collation-server=utf8_bin create database xwiki; create user xwiki identified by 'xwiki'; grant all on xwiki.* to xwiki@'%'; flush privileges; docker run -d --restart always --name xwiki -v /root/xwiki:/usr/local/xwiki -e DB_USER=xwiki -e DB_PASSWORD=XwIkI123321 -e DB_DATABASE=xwiki -e DB_HOST=172.18.0.1 xwiki:lts-mysql-tomcat 要等很久才可以正常访问,因为配置还

MyBatis 中文文档

Mapper XML Files 中文文档 MyBatis的真正强大之处在于映射语句。这就是奇迹发生的地方。尽管具有强大的功能,但 Mapper XML文件相对简单。当然,如果您将它们

Spring Boot 整合 Quartz

@EnableScheduling @SpringBootApplication public class Application { public static void main(String[] args) { SpringApplication.run(Application.class); } } @Component public class MyTask { private static final Logger LOGGER = LoggerFactory.getLogger(MyTask.class); private static final long SECOND = 1000; /** * 注入service */ @Autowired private UserService userService; /** * 固定间隔3秒,可以引用变量 * fixe

Spring Data Redis 快速指南

@Configuration class RedisConfiguration { @Bean public JedisConnectionFactory redisConnectionFactory() { RedisStandaloneConfiguration config = new RedisStandaloneConfiguration("server", 6379); return new JedisConnectionFactory(config); } } 模板为Redis交互提供了一个高级抽象。RedisConnection提供接受和返回二进制值(字节数

异常

java.sql.SQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (spas.user_role, CONSTRAINT FK_user_role_use FOREIGN KEY (use_id) REFERENCES user (id) ON DELETE RESTRICT ON UPDATE RESTRICT) AuthorizationException: Not authorized to invoke method org.apache.shiro.authc.IncorrectCredentialsException: Submitted credentials for token [org.apache.shiro.authc.UsernamePasswordTo org.apache.shiro.authc.IncorrectCredentialsException: 令牌失效! TokenExpiredException: The Token has expired on Fri Mar 27 11:16:28 CST 2020. org.apache.shiro.authz.AuthorizationException: Not authorized to invoke method: public com.spas.backend.common.ApiResponse com.spas.backend.controller.UserController.get(java.lang.String) java.lang.NullPointerException: null com.fasterxml.jackson.databind.exc.InvalidDefinitionException: