Class MybatisResource


  • @Path("/mybatis")
    @ApplicationScoped
    public class MybatisResource
    extends Object
    • Field Detail

      • template

        @Inject
        org.apache.camel.ProducerTemplate template
    • Constructor Detail

      • MybatisResource

        public MybatisResource()
    • Method Detail

      • selectOne

        @Path("/selectOne")
        @GET
        @Produces("application/json")
        public Account selectOne​(@QueryParam("id")
                                 Integer id)
      • insertOne

        @Path("/insertOne")
        @POST
        @Consumes("application/json")
        @Produces("text/plain")
        public Integer insertOne​(Account account)
      • deleteOne

        @Path("/deleteOne")
        @DELETE
        @Produces("text/plain")
        public Integer deleteOne​(@QueryParam("id")
                                 Integer id)