java
java
永远喜欢薇尔莉特
这个作者很懒,什么都没留下…
展开
-
springboot
配置application.properties#访问根路径 #应用名称spring.application.name=springboot-demo #访问端口号server.port=8080 #编码格式server.tomcat.uri-encoding=utf-8 #数据库相关配置spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driverspring.datasource.url=jdbc:mysql://lo原创 2021-04-29 15:31:00 · 87 阅读 · 0 评论 -
微信公众号
state参数过长微信公众号授权时,state参数超过了128个字节。原创 2021-04-28 15:56:15 · 306 阅读 · 0 评论 -
idea安装插件教程
进入设置,搜索plugins进入marketplace搜索自己想要安装的插件即可进行安装原创 2021-04-25 10:42:57 · 206 阅读 · 0 评论 -
springboot多模块搭建教程
一、创建聚合父工程1.首先使用 Spring Initializr 来快速创建好一个Maven工程。然后删除无关的文件,只需保留pom.xml 文件。聚合父工程然后在 pom.xml 里面声明该父工程包含的子模块。(其它信息就不逐一讲述了,诸如继承SpringBoot官方父工程以及统一依赖管理 请查看下面的注释说明)<?xml version="1.0" encoding="UTF-8"?><!-- 基本信息 --><description>SpringBo原创 2021-04-24 18:21:23 · 550 阅读 · 0 评论 -
mybatis
解决数据库字段和model属性不一致的问题<select id="selectUser" resultMap="UserMap"> select * from user</select><!--设置结果的映射类型--><resultMap id="UserMap" type="User"> <!-- 一般通过id标签来映射主键 column = 数据库的列名 property = 结果集对应的数据库列名的映射名原创 2021-04-24 12:01:29 · 77 阅读 · 0 评论 -
正则表达式与模式匹配
// \\d表示数字,+表示一个数字以上// [a-z]表示数字a到数字z,+表示一个字母以上Pattern pattern = Pattern.compile("\\d+[a-z]+");// str表示需要模式匹配的字符串Matcher matcher = pattern.matcher(str);// find()表示存在模式匹配while (matcher.find()) { // group()表示模式匹配的字符串 logger.debug(matcher.group());原创 2021-04-23 18:27:44 · 98 阅读 · 0 评论 -
linux搭建tomcat环境,没有权限启动8080端口
打开/etc/passwd文件修改之前的代码tomcat:x:53:53:Apache Tomcat:/usr/share/tomcat:/sbin/nologin修改之后的代码tomcat:x:0:53:Apache Tomcat:/usr/share/tomcat:/sbin/nologin原创 2021-04-23 16:27:02 · 190 阅读 · 0 评论 -
web.xml 3.0
<?xml version="1.0" encoding="UTF-8"?> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns.原创 2021-04-23 14:38:43 · 527 阅读 · 0 评论 -
搜索引擎
project1For this project, you will write a Java program that processes all text files in a directory and its subdirectories, cleans and parses the text into word stems, and builds an in-memory inverted index to store the mapping from word stems to the doc原创 2021-04-22 13:04:44 · 273 阅读 · 0 评论 -
通过xsl解析xml(具体为TEI)生成html
xml地址https://www.oldbaileyonline.org/browse.jsp?foo=bar&path=sessionsPapers/17701024.xml&div=t17701024-22&xml=yesTEI文档地址https://tei-c.org/release/doc/tei-p5-exemplars/html/tei_lite.doc.html#U5-ptrs使用xml和xsl生成html(java实现)import org.apache原创 2021-04-22 12:17:58 · 520 阅读 · 0 评论 -
socket
OverviewThe term socket programming refers to writing programs that execute across multiple computers in which the devices are all connected to each other using a network.There are two communication protocols that one can use for socket programming: Us.原创 2021-04-15 19:32:27 · 167 阅读 · 0 评论 -
apksigner --> apk签名工具
apksigner您可以使用 Android SDK 构建工具的修订版 24.0.3 及更高版本中提供的 apksigner 工具为 APK 签名,并确保 APK 的签名能够在 APK 支持的所有版本的 Android 平台上成功通过验证。本页提供了有关如何使用该工具的简短指南,并可作为查阅该工具支持的不同命令行选项的参考文档。如需有关如何使用 apksigner 工具为 APK 签名的更完整说明,请参阅为您的应用签名指南。注意:如果您在使用 apksigner 为 APK 签名后又对 APK 做了更改原创 2021-04-15 21:43:04 · 3364 阅读 · 0 评论 -
activemq配置wss协议
配置wss协议<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses th原创 2021-04-16 22:48:45 · 1138 阅读 · 0 评论 -
primefinder
需求Prime FinderFor this homework assignment, you must:Add a pending variable to the WorkQueue class to track unfinished work, and implement a finish() method that waits until there is no more pending work.Implement the multithreaded findPrimes(int, int,原创 2021-04-17 17:39:49 · 190 阅读 · 0 评论 -
maven打包包含所有依赖的jar
参考链接https://blog.csdn.net/xiao__gui/article/details/47341385打包方式mvn package assembly:single原创 2021-04-16 11:36:20 · 142 阅读 · 0 评论 -
IntelliJ IDEA项目正常编译,但是代码部分飘红
参考链接https://blog.csdn.net/fsh2008/article/details/115486637清除缓存即可File->Invalidate Caches/Restart原创 2021-04-16 10:45:43 · 872 阅读 · 0 评论 -
readwritelock
需求Read Write LockFor this homework assignment, you will create (1) a custom read write lock and (2) a thread safe indexed set using that lock.See the Javadoc comments in ReadWriteLock.java and ThreadSafeIndexedSet.java for template code and additional d原创 2021-04-17 17:16:19 · 176 阅读 · 0 评论