- 博客(14)
- 资源 (3)
- 收藏
- 关注
原创 获取xml指定节点数据
import java.io.File; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import org.dom4j.Document; import org.dom4j.Element; import org.dom4j.Node; import org.dom4j.io.SAXReader; public class ReadXml { private static List&l.
2021-07-16 16:57:35
661
原创 用户名密码转basic认证
public static String getAuthorization(String username,String password) { Encoder encoder = Base64.getEncoder(); byte[] data = encoder.encode((username+":"+password).getBytes()); String str = new String(data); System.out.println(str...
2021-07-16 15:15:31
740
原创 使用smooks框架EDI转XML
package com.edi; import java.io.*; import java.util.List; import java.util.Locale; import javax.xml.transform.stream.StreamSource; import org.milyn.ReaderConfigurator; import org.milyn.Smooks; import org.milyn.SmooksException; import org.milyn.cdr.Smoo.
2021-07-15 10:02:17
959
原创 读文件小工具
import java.io.BufferedWriter; import java.io.File; import java.io.FileInputStream; import java.io.FileWriter; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.List; public class ReadFile { private s.
2021-03-08 14:46:28
167
原创 RabbitMQ入门演示
消息生产端 import com.example.springdemo.utils.RabbitUtils; import com.rabbitmq.client.AMQP; import com.rabbitmq.client.Channel; import com.rabbitmq.client.Connection; import com.rabbitmq.client.MessageProperties; import java.io.IOException; import java.text
2021-01-21 22:16:22
115
原创 apache camel helloWorld
ProcessorImpl package com.jxt.camelDemo; import org.apache.camel.Exchange; import org.apache.camel.Processor; import org.apache.camel.http.common.HttpMessage; import org.apache.camel.util.json.JsonObject; import javax.servlet.http.HttpServletRequest; i
2021-01-19 19:22:47
164
原创 shiro入门演示
CustomRealm package com.example.springdemo.shiro; import org.apache.shiro.authc.*; import org.apache.shiro.authz.AuthorizationInfo; import org.apache.shiro.authz.SimpleAuthorizationInfo; import org.apache.shiro.realm.AuthorizingRealm; import org.apache.
2021-01-16 13:51:58
102
原创 shiro登录权限角色验证演示
package com.example.springdemo; import com.example.springdemo.shiro.CustomRealm; import org.apache.shiro.SecurityUtils; import org.apache.shiro.authc.IncorrectCredentialsException; import org.apache.shiro.authc.UnknownAccountException; import org.apache..
2021-01-16 11:14:02
150
原创 shiro自定义Realm入门
package com.example.springdemo.shiro; import org.apache.shiro.authc.*; import org.apache.shiro.authz.AuthorizationInfo; import org.apache.shiro.authz.SimpleAuthorizationInfo; import org.apache.shiro.realm.AuthorizingRealm; import org.apache.shiro.subject.
2021-01-16 11:09:14
119
包含joltjse.jar,jolt.jar,joltwls.jar三个jar
2021-06-17
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅
1