Skip to content

Commit

Permalink
write a line into test.file
Browse files Browse the repository at this point in the history
  • Loading branch information
huifer committed Sep 21, 2023
1 parent 8b15226 commit a6ab203
Show file tree
Hide file tree
Showing 3 changed files with 180 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docs/spring/cs39e7c9f8-581f-11ee-b2a6-acde48001122.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/**
* Copyright 2009-2018 the original author or authors.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ibatis.submitted.ancestor_ref;

public interface Mapper {

User getUserAssociation(Integer id);

User getUserCollection(Integer id);

Blog selectBlog(Integer id);

}
123 changes: 123 additions & 0 deletions docs/spring/cs3a2e3366-581f-11ee-b2a6-acde48001122.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
package com.huifer.ssm.mapper;

import com.huifer.ssm.pojo.User;
import com.huifer.ssm.pojo.UserExample;
import com.huifer.ssm.pojo.UserKey;
import com.huifer.ssm.pojo.UserWithBLOBs;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user
*
* @mbg.generated
*/
long countByExample(UserExample example);

/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user
*
* @mbg.generated
*/
int deleteByExample(UserExample example);

/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user
*
* @mbg.generated
*/
int deleteByPrimaryKey(UserKey key);

/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user
*
* @mbg.generated
*/
int insert(UserWithBLOBs record);

/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user
*
* @mbg.generated
*/
int insertSelective(UserWithBLOBs record);

/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user
*
* @mbg.generated
*/
List<UserWithBLOBs> selectByExampleWithBLOBs(UserExample example);

/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user
*
* @mbg.generated
*/
List<User> selectByExample(UserExample example);

/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user
*
* @mbg.generated
*/
UserWithBLOBs selectByPrimaryKey(UserKey key);

/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") UserWithBLOBs record, @Param("example") UserExample example);

/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user
*
* @mbg.generated
*/
int updateByExampleWithBLOBs(@Param("record") UserWithBLOBs record, @Param("example") UserExample example);

/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user
*
* @mbg.generated
*/
int updateByExample(@Param("record") User record, @Param("example") UserExample example);

/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(UserWithBLOBs record);

/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user
*
* @mbg.generated
*/
int updateByPrimaryKeyWithBLOBs(UserWithBLOBs record);

/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user
*
* @mbg.generated
*/
int updateByPrimaryKey(User record);
}
31 changes: 31 additions & 0 deletions docs/spring/cs3a74fefe-581f-11ee-b2a6-acde48001122.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package com.huifer.activermq.receiver;

import org.apache.activemq.ActiveMQConnectionFactory;

import javax.jms.*;

/**
* <p>Title : JMSQueueReceiver </p>
* <p>Description : </p>
*
* @author huifer
* @date 2019-06-17
*/
public class JMSQueueReceiver {

public static void main(String[] args) throws JMSException {
ConnectionFactory connectionFactory = new ActiveMQConnectionFactory(
"tcp://192.168.1.108:61616");
Connection connection = connectionFactory.createConnection();
connection.start();
Session session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE);
Queue testQueue = session.createQueue("testQueue");
MessageConsumer consumer = session.createConsumer(testQueue);
TextMessage msg = (TextMessage) consumer.receive();
System.out.println(msg.getText());

session.commit();
session.close();

}
}

0 comments on commit a6ab203

Please sign in to comment.