Skip to content
net.andreinc
  • blog
  • cv
  • my github
  • contact

Posts by Andrei Ciobanu

  • Home
  • Andrei Ciobanu

About Andrei Ciobanu

Software Engineer with a passion for good code.

Writing an unified validation mechanism for REST APIs using Spring Boot and JSR-380

Posted by By Andrei Ciobanu October 2, 2017Posted inJava, Spring3 Comments
JSR-380 defines a metadata model and API for Java Bean validation. It can be used an "architectural-agnostic" way and it is particularly useful when it comes to validating the RESTful…
Read More

Simple authentication with Spring Boot and JWT Tokens

Posted by By Andrei Ciobanu September 10, 2016Posted inJava, Spring6 Comments

In the following article I am going to prove how you can secure a REST API (developed with Spring Boot) with JWT tokens. For simplicity, Spring Security will not be used.

It is assumed the reader is already familiar with JWT.

Continue Reading
Read More

How to use SeekableByteChannel interface for Random Access to Files (RAF)

Posted by By Andrei Ciobanu December 9, 2013Posted inJava, NIO1 Comment
RAFs, Random Access Files permit asynchronous (random) access to a file contents. To access a file randomly we open the file, seek a particular position, and then we read or…
Read More

Writing a simple file/folder monitor using the Watch Service API

Posted by By Andrei Ciobanu December 6, 2013Posted inJava, NIO5 Comments
The Watch Service was introduced in Java 7 as a "thread-safe" service responsible for watching objects for changes. The most popular use of this API would be to use it…
Read More

Recursive folder walks using NIO.2 API

Posted by By Andrei Ciobanu December 6, 2013Posted inJava, NIO, UncategorizedNo Comments
FileVisitor Interface The FileVisitor interface allows us to recursively traverse file structures - folders, sub-folders and files. Every method of this interface can return 4 possible results (instances of the…
Read More

File Attributes int the NIO.2 API

Posted by By Andrei Ciobanu December 5, 2013Posted inJava, NIO, Uncategorized1 Comment
Introduction With NIO.2 we can easily determine the attributes of a file by using the java.nio.file.attribute package. Various file systems have different properties associated with files but NIO.2 groups the…
Read More

The NIO.2 Path Class

Posted by By Andrei Ciobanu December 5, 2013Posted inJava, NIONo Comments
The Path class is considered to be the entry point for exploring the NIO.2 API. Basically every I/O operation in NIO.2 will exploit the facilities offered by this class. Path…
Read More

HR Schema for MySQL and Maria DB

Posted by By Andrei Ciobanu October 5, 2013Posted inData Bases, Maria DB, MySQL, SQL11 Comments
If you are familiar with Oracle's HR schema you may find the following useful. I've written a script that generates a similar sample schema for MySQL and MariaDB. The table…
Read More

Getting started with Apache Maven and Eclipse

Posted by By Andrei Ciobanu September 9, 2013Posted inEclipse, Java, MavenNo Comments
Apache Maven is a popular build automation tool, for large Java Projects. All major Java IDEs (IntelliJ IDEA, Eclipse and Netbeans) fully support Maven integration, by default or via plugins. In order to…
Read More

Adding custom annotations to your java beans

Posted by By Andrei Ciobanu September 5, 2013Posted inJava3 Comments
Java annotations are syntactic meta-information that can be added to your Java source code. You can annotate classes, methods, variables, method parameters and even packages. The great advantage of Java…
Read More

Posts navigation

1 2 3 4 Next page

Categories

  • Data Bases 1
    • Maria DB 1
    • MySQL 1
  • Data Structures and Algorithms 13
  • Programming Languages 36
    • Bash 2
    • C 7
    • Java 18
      • Maven 1
      • NIO 5
      • Spring 2
      • Swing 1
    • JavaScript/HTML 1
    • PL/SQL 1
    • Python 7
    • Scala 2
    • SQL 1
  • Software Tools 1
    • Eclipse 1
  • Uncategorized 2

Archives

Copyright 2021 — net.andreinc. All rights reserved. Sinatra WordPress Theme
Scroll to Top